devo

package
v0.0.0-...-795ddc4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevoClient

type DevoClient struct {
	APIKey     string
	APISecret  string
	SerreaURL  string
	Debug      bool
	HTTPClient *http.Client
	BufferSize int
}

func Init

func Init(sp *DevoClient) DevoClient

func (*DevoClient) ContinuousQuery

func (s *DevoClient) ContinuousQuery(from int64, query string, resultmsg chan string) (err error)

func (*DevoClient) QueryRaw

func (s *DevoClient) QueryRaw(from int64, to int64, query string, resultmsg chan string) (lastLine string, err error)

type DevoRequest

type DevoRequest struct {
	DateFrom int64  `json:"from"`
	DateTo   int64  `json:"to"`
	Query    string `json:"query"`
	Mode     SMode  `json:"mode"`
}

type SDevoResponse

type SDevoResponse struct {
	Message   string        `json:"msg"`
	Timestamp int64         `json:"timestamp"`
	CID       string        `json:"cid"`
	Status    int           `json:"status"`
	Object    []interface{} `json:"object"`
}

type SMode

type SMode struct {
	Type string `json:"type"`
}

Jump to

Keyboard shortcuts

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