github.com/status-im/status-go@v1.1.0/services/accounts/settingsevent/events.go (about)

     1  package settingsevent
     2  
     3  import "github.com/status-im/status-go/multiaccounts/settings"
     4  
     5  // EventType type for event types.
     6  type EventType string
     7  
     8  // Event is a type for accounts events.
     9  type Event struct {
    10  	Type    EventType             `json:"type"`
    11  	Setting settings.SettingField `json:"setting"`
    12  	Value   interface{}           `json:"value"`
    13  }
    14  
    15  const (
    16  	EventTypeChanged EventType = "changed"
    17  )