repository

package
v0.0.0-...-e208bcd Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(ctx context.Context)

func Conn

func Conn(ctx context.Context) (e error)

Types

type Event

type Event struct {
	AggType   string `json:"agg_type"`
	AggId     string `json:"agg_id"`
	DateTime  string `json:"date_time"`
	EventId   string `json:"event_id"`
	EventType string `json:"event_type"`
	Data      []byte `json:"data"`
}

{"agg_type":"",agg_id:"",date_time:"",events:[{event_id:"",data:"",type:""},{event_id:"",data:""}]}

func NewEvent

func NewEvent(aggType string, aggId string, dateTime string, eventId string, eventType string, data []byte) *Event

func (*Event) Save

func (event *Event) Save(ctx context.Context) error

Jump to

Keyboard shortcuts

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