Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventDBObject ¶
EventDBObject holds information needed for storing an event in the database
func (*EventDBObject) Store ¶
func (e *EventDBObject) Store(rlog log.Ext1FieldLogger, tx *sqlx.Tx) error
Store stores the EventDBObject in the database
type EventEntry ¶ added in v0.2.0
type EventEntry struct { api.EventEntry `json:",inline"` MTID mtid.MTID `db:"MT_id" json:"-"` Time unixtime.UnixTime `db:"time" json:"time"` }
EventEntry represents a mytoken event
type EventHistory ¶ added in v0.2.0
type EventHistory []EventEntry
EventHistory is type for multiple EventEntry
func GetEventHistory ¶ added in v0.2.0
func GetEventHistory(rlog log.Ext1FieldLogger, tx *sqlx.Tx, id mtid.MTID) (history EventHistory, err error)
GetEventHistory returns the stored EventHistory for a mytoken
Click to show internal directories.
Click to hide internal directories.