Documentation ¶
Index ¶
- Constants
- Variables
- func Fetch(req *fasthttp.Request, resp *fasthttp.Response) (err error)
- func NewDispatcher(requestQueue chan *Task) (stop chan struct{})
- func ReleaseTask(t *Task)
- func SetBasicAuth(request *fasthttp.Request, user string, password string)
- type DispatcherStruct
- type FetchError
- type RequestDescriptor
- type Task
- type ZDProvider
- func (p *ZDProvider) ExportCSAT(onSuccess func(interface{}), since int64)
- func (p *ZDProvider) ExportGroups(onSuccess func(interface{}))
- func (p *ZDProvider) ExportOrganizationFields(onSucess func(interface{}))
- func (p *ZDProvider) ExportOrganizations(onSuccess func(interface{}), since int64)
- func (p *ZDProvider) ExportTicketFields(onSucess func(interface{}))
- func (p *ZDProvider) ExportTickets(onSuccess func(interface{}), since int64)
- func (p *ZDProvider) ExportUserFields(onSucess func(interface{}))
- func (p *ZDProvider) ExportUsers(onSuccess func(interface{}), since int64)
- func (p *ZDProvider) FetchAudits(ticketID int64, onSuccess func(interface{}))
- func (p *ZDProvider) FetchMetrics(ticketID int64, onSuccess func(interface{}))
- type ZendeskConfig
Constants ¶
View Source
const (
ZDVersion = "api/v2/"
)
Variables ¶
View Source
var (
WG = &sync.WaitGroup{}
)
Functions ¶
func NewDispatcher ¶
func NewDispatcher(requestQueue chan *Task) (stop chan struct{})
func ReleaseTask ¶
func ReleaseTask(t *Task)
Types ¶
type DispatcherStruct ¶
type FetchError ¶
type FetchError struct {
// contains filtered or unexported fields
}
func (*FetchError) Error ¶
func (f *FetchError) Error() string
type RequestDescriptor ¶
func PreProcess ¶
func PreProcess(data []byte) *RequestDescriptor
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func AcquireTask ¶
func AcquireTask(errorQueue *collections.DEQueue) (t *Task)
type ZDProvider ¶
type ZDProvider struct { Errors *collections.DEQueue // contains filtered or unexported fields }
func Open ¶
func Open(conf *ZendeskConfig, requestQueue chan *Task) (handle *ZDProvider)
func (*ZDProvider) ExportCSAT ¶
func (p *ZDProvider) ExportCSAT(onSuccess func(interface{}), since int64)
func (*ZDProvider) ExportGroups ¶
func (p *ZDProvider) ExportGroups(onSuccess func(interface{}))
func (*ZDProvider) ExportOrganizationFields ¶
func (p *ZDProvider) ExportOrganizationFields(onSucess func(interface{}))
func (*ZDProvider) ExportOrganizations ¶
func (p *ZDProvider) ExportOrganizations(onSuccess func(interface{}), since int64)
func (*ZDProvider) ExportTicketFields ¶
func (p *ZDProvider) ExportTicketFields(onSucess func(interface{}))
func (*ZDProvider) ExportTickets ¶
func (p *ZDProvider) ExportTickets(onSuccess func(interface{}), since int64)
func (*ZDProvider) ExportUserFields ¶
func (p *ZDProvider) ExportUserFields(onSucess func(interface{}))
func (*ZDProvider) ExportUsers ¶
func (p *ZDProvider) ExportUsers(onSuccess func(interface{}), since int64)
func (*ZDProvider) FetchAudits ¶
func (p *ZDProvider) FetchAudits(ticketID int64, onSuccess func(interface{}))
func (*ZDProvider) FetchMetrics ¶
func (p *ZDProvider) FetchMetrics(ticketID int64, onSuccess func(interface{}))
type ZendeskConfig ¶
Click to show internal directories.
Click to hide internal directories.