dispatcher

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DispatchAPIKeyCreate

func DispatchAPIKeyCreate(h hash.Hash, k key.APIKeyType) error

DispatchAPIKeyCreate dispatches event

func DispatchAPIKeyDelete

func DispatchAPIKeyDelete(h hash.Hash, k key.APIKeyType) error

DispatchAPIKeyDelete dispatches event

func DispatchAuthKeyCreate

func DispatchAuthKeyCreate(h hash.Hash, k key.AuthKeyType) error

DispatchAuthKeyCreate dispatches event

func DispatchAuthKeyDelete

func DispatchAuthKeyDelete(h hash.Hash, k key.AuthKeyType) error

DispatchAuthKeyDelete dispatches event

func DispatchLocalDelivery

func DispatchLocalDelivery(h hash.Hash, header *message.Header, msgID string) error

DispatchLocalDelivery dispatches event

func DispatchRemoteDelivery

func DispatchRemoteDelivery(h hash.Hash, header *message.Header, msgID string) error

DispatchRemoteDelivery dispatches event

func DispatchWebhookCreate

func DispatchWebhookCreate(h hash.Hash, wh webhook.Type) error

DispatchWebhookCreate dispatches event

func DispatchWebhookDelete

func DispatchWebhookDelete(h hash.Hash, wh webhook.Type) error

DispatchWebhookDelete dispatches event

func DispatchWebhookUpdate

func DispatchWebhookUpdate(h hash.Hash, wh webhook.Type) error

DispatchWebhookUpdate dispatches event

func InitDispatcher

func InitDispatcher(c int)

InitDispatcher initializes the dispatcher system with the given number of workers

func Work

func Work(w webhook.Type, payload interface{})

Work is the main function that will get dispatched as a job. It will do the actual work of sending data

Types

This section is empty.

Jump to

Keyboard shortcuts

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