zendesksource

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvAccessor

func EnvAccessor() adapter.EnvConfigAccessor

EnvAccessor for configuration parameters

func NewAdapter

func NewAdapter(ctx context.Context, aEnv adapter.EnvConfigAccessor, ceClient cloudevents.Client) adapter.Adapter

NewAdapter adapter implementation

Types

type ZendeskAPIHandler

type ZendeskAPIHandler interface {
	Start(ctx context.Context) error
}

ZendeskAPIHandler listen for Zendesk API Events

func NewZendeskAPIHandler

func NewZendeskAPIHandler(ceClient cloudevents.Client, username, password, eventsource string, logger *zap.SugaredLogger) ZendeskAPIHandler

NewZendeskAPIHandler creates the default implementation of the Zendesk API Events handler

type ZendeskEvent

type ZendeskEvent map[string]interface{}

ZendeskEvent contains the event payload

func (*ZendeskEvent) ID

func (ze *ZendeskEvent) ID() string

ID returns the ID of the Zendesk ticket

func (*ZendeskEvent) Title

func (ze *ZendeskEvent) Title() string

Title returns the title of the Zendesk ticket

func (*ZendeskEvent) Type

func (ze *ZendeskEvent) Type() string

Type returns the type of the Zendesk ticket

Jump to

Keyboard shortcuts

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