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 ¶
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
Click to show internal directories.
Click to hide internal directories.