subscriber

package
v0.0.0-...-80bedfa Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Subscriber) error

An Option can be used to configure new Subscribers.

func WithLogger

func WithLogger(l *zap.Logger) Option

WithLogger configures a Susbcribers's logger.

type Subscriber

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

A Subscriber wraps a webhook to satisfy cert.Subscriber.

func New

func New(h webhook.Hook, o ...Option) (*Subscriber, error)

New creates a new Subscriber.

func (*Subscriber) Changed

func (s *Subscriber) Changed()

Changed triggers the wrapped webhook asynchronously.

Jump to

Keyboard shortcuts

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