proxy

package
v0.0.0-...-c53e812 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Url     string        `envconfig:"PROXY_NOTIFIER_URL"`
	Timeout time.Duration `envconfig:"PROXY_NOTIFIER_TIMEOUT" default:"10s"`
}

type ProxyNotifier

type ProxyNotifier struct {
	// contains filtered or unexported fields
}

func New

func New() *ProxyNotifier

func (*ProxyNotifier) Configure

func (n *ProxyNotifier) Configure(log *logrus.Logger) error

func (ProxyNotifier) Send

func (n ProxyNotifier) Send(ctx context.Context, eventTypeHeader, eventIDHeader, body string) error

Jump to

Keyboard shortcuts

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