akamai

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int64ToString

func Int64ToString(i int64) string

func UnixStringToTime

func UnixStringToTime(s string) time.Time

Types

type Client

type Client struct {
	Options map[string]interface{}
	// contains filtered or unexported fields
}

func New

func New(options map[string]interface{}) (*Client, error)

func (*Client) Exit

func (akamaiClient *Client) Exit() (err error)

func (*Client) GetEvents

func (akamaiClient *Client) GetEvents(eventUrl string, body []byte, resultsChannel chan<- string) (count, total, pageNumber, pageSize int, err error)

Get events

func (*Client) Poll

func (akamaiClient *Client) Poll(timestamp time.Time, resultsChannel chan<- string, pollOffset int) (count int, currentTimestamp time.Time, err error)

Poll will query the source and pass the results back through a result channel

func (*Client) Stream

func (akamaiClient *Client) Stream(streamChannel chan<- string) (cancelFunc func(), err error)

type DetailBody

type DetailBody struct {
	StartTimeSec int    `json:"startTimeSec"`
	EndTimeSec   int    `json:"endTimeSec"`
	OrderBy      string `json:"orderBy"`
	PageNumber   int    `json:"pageNumber"`
	PageSize     int    `json:"pageSize"`
	Filters      struct {
	} `json:"filters"`
}

type DetailResponse

type DetailResponse struct {
	PageInfo struct {
		TotalRecords int `json:"totalRecords"`
		PageNumber   int `json:"pageNumber"`
		PageSize     int `json:"pageSize"`
	} `json:"pageInfo"`
	DataRows []interface{} `json:"dataRows"`
}

Jump to

Keyboard shortcuts

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