event

package
v0.0.0-...-0b7e9c5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client struct

func New

func New(options ...OptionFunc) (*Client, error)

New builder of new client

func (*Client) GetEvent

func (c *Client) GetEvent(id int64) (*api.EventGeo, error)

func (*Client) RecordBatchEvents

func (c *Client) RecordBatchEvents(events []api.Event) (api.BatchEventResponse, error)

func (*Client) RecordEvent

func (c *Client) RecordEvent(event api.Event) (int64, error)

type OptionFunc

type OptionFunc func(*Client) error

OptionFunc options

func SetDB

func SetDB(db potdb.DB) OptionFunc

SetDB set the db

Jump to

Keyboard shortcuts

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