eventapi

package
v4.0.52 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPrivateKey = errors.New("no private key found")

ErrNoPrivateKey is thrown from PrivateKey if the integration instance has no private key

View Source
var ErrWebHookDisabled = errors.New("webhook: disabled")

ErrWebHookDisabled is returned if webhook is disabled

Functions

func New

func New(cfg Config) (m sdk.Manager, err error)

New will create a new event api sdk.Manager

Types

type Config

type Config struct {
	Logger         log.Logger
	Channel        string
	Secret         string
	APIKey         string
	SelfManaged    bool
	WebhookEnabled bool
	RecordDir      string
	ReplayDir      string
}

Config is the required fields for a

Jump to

Keyboard shortcuts

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