Documentation
¶
Index ¶
- type ActionType
- type AttachmentPhotoType
- type AttachmentType
- type AttachmentVideoType
- type Author
- type Client
- func (c *Client) AddRule(credentials StreamingAuth, rule Rule) (RuleResponse, error)
- func (c *Client) Authorize() (string, error)
- func (c *Client) GetRules(credentials StreamingAuth) ([]Rule, error)
- func (c *Client) GetServerUrl() (StreamingAuth, error)
- func (c *Client) Initialize(accessToken string) error
- func (c *Client) RemoveRule(credentials StreamingAuth, tag string) (RuleResponse, error)
- func (c *Client) Stream(credentials StreamingAuth, streamsCount int, messageChan chan []byte)
- type CoordinateType
- type ErrorMessage
- type EventId
- type EventType
- type GeoType
- type Rule
- type RuleResponse
- type RulesResponse
- type ServiceMessage
- type StreamEvent
- type StreamResponse
- type StreamingAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentPhotoType ¶
type AttachmentType ¶
type AttachmentType struct { Type string Photo AttachmentPhotoType Video AttachmentVideoType }
type AttachmentVideoType ¶
type Client ¶
type Client struct { Version string // contains filtered or unexported fields }
func (*Client) AddRule ¶
func (c *Client) AddRule(credentials StreamingAuth, rule Rule) (RuleResponse, error)
func (*Client) GetServerUrl ¶
func (c *Client) GetServerUrl() (StreamingAuth, error)
func (*Client) Initialize ¶
func (*Client) RemoveRule ¶
func (c *Client) RemoveRule(credentials StreamingAuth, tag string) (RuleResponse, error)
type CoordinateType ¶
type CoordinateType struct {
// contains filtered or unexported fields
}
type ErrorMessage ¶
type GeoType ¶
type GeoType struct { Type string Coordinates CoordinateType Place interface{} }
type RuleResponse ¶
type RuleResponse struct { Code int Error ErrorMessage }
type RulesResponse ¶
type RulesResponse struct { Code int Rules []Rule Error ErrorMessage }
type ServiceMessage ¶
type StreamEvent ¶
type StreamResponse ¶
type StreamResponse struct { Code int Event StreamEvent ServiceMessage ServiceMessage }
type StreamingAuth ¶
Click to show internal directories.
Click to hide internal directories.