Documentation ¶
Index ¶
- Constants
- type EngineClient
- type Event
- func (e *Event) SetEntityID(entityID string) *Event
- func (e *Event) SetEntityType(entityType string) *Event
- func (e *Event) SetEvent(name string) *Event
- func (e *Event) SetEventTime(eventTime time.Time) *Event
- func (e *Event) SetProperties(properties map[string]interface{}) *Event
- func (e *Event) SetTargetEntityID(targetEntityID string) *Event
- func (e *Event) SetTargetEntityType(targetEntityType string) *Event
- type EventClient
- type EventResponder
Constants ¶
View Source
const ( EventTypeSet = "$set" EventTypeUnset = "$unset" EventTypeDelete = "$delete" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EngineClient ¶
func NewEngineClient ¶
func NewEngineClient(HOST string) *EngineClient
func (*EngineClient) Query ¶
func (client *EngineClient) Query(query interface{}) ([]byte, error)
type Event ¶
type Event struct { Event string `json:"event"` EntityType string `json:"entityType"` EntityID string `json:"entityId"` TargetEntityType string `json:"targetEntityType,omitempty"` TargetEntityID string `json:"targetEntityId,omitempty"` Properties map[string]interface{} `json:"properties,omitempty"` EventTime time.Time `json:"eventTime"` }
func (*Event) SetEntityID ¶
func (*Event) SetEntityType ¶
func (*Event) SetProperties ¶
func (*Event) SetTargetEntityID ¶
func (*Event) SetTargetEntityType ¶
type EventClient ¶
func NewEventClient ¶
func NewEventClient(HOST string, accessKey string) *EventClient
func (*EventClient) SentClient ¶
func (client *EventClient) SentClient(event *Event) (*EventResponder, error)
type EventResponder ¶
type EventResponder struct {
EventID string `json:"eventId"`
}
Click to show internal directories.
Click to hide internal directories.