eventapi

package
v0.0.0-...-b8869b4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 26 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