zendesk

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New will initialize and return an authorized Client

Types

type AuditResponse

type AuditResponse struct {
	AuditLogs []json.RawMessage `json:"audit_logs"`
	Meta      struct {
		HasMore      bool   `json:"has_more"`
		AfterCursor  string `json:"after_cursor"`
		BeforeCursor string `json:"before_cursor"`
	} `json:"meta"`
	Links struct {
		Prev string `json:"prev"`
		Next string `json:"next"`
	} `json:"links"`
}

type Client

type Client struct {
	collector.Client
	Options map[string]interface{}
	Domain  string `json:"domain"`
	// contains filtered or unexported fields
}

func (*Client) ClientType

func (zendeskClient *Client) ClientType() collector.ClientType

func (*Client) Exit

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

func (*Client) Poll

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

func (*Client) Stream

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

Jump to

Keyboard shortcuts

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