eventrepo

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventDBObject

type EventDBObject struct {
	*event.Event
	MTID mtid.MTID
	api.ClientMetaData
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL