zendesk

package
v0.0.0-...-d67b2d1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZDVersion = "api/v2/"
)

Variables

View Source
var (
	WG = &sync.WaitGroup{}
)

Functions

func Fetch

func Fetch(req *fasthttp.Request, resp *fasthttp.Response) (err error)

func NewDispatcher

func NewDispatcher(requestQueue chan *Task) (stop chan struct{})

func ReleaseTask

func ReleaseTask(t *Task)

func SetBasicAuth

func SetBasicAuth(request *fasthttp.Request, user string, password string)

Types

type DispatcherStruct

type DispatcherStruct struct {
	Stop  chan struct{}
	Latch *sync.WaitGroup
	// contains filtered or unexported fields
}

type FetchError

type FetchError struct {
	// contains filtered or unexported fields
}

func (*FetchError) Error

func (f *FetchError) Error() string

type RequestDescriptor

type RequestDescriptor struct {
	Payload  []byte
	Next     []byte
	Resource string
	Count    int64
}

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)

func (*Task) Process

func (t *Task) Process(requestQueue chan *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

type ZendeskConfig struct {
	User      string
	Password  string
	Subdomain string
}

Jump to

Keyboard shortcuts

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