heartbeat

package module
v0.0.0-...-aa565f4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRateLimitExceeded = errors.New("rate limit exceeded")

Functions

This section is empty.

Types

type Callback

type Callback func(ctx context.Context) error

func CallbackHTTP

func CallbackHTTP(method, url string) Callback

type Heartbeat

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

func New

func New(every time.Duration, cb Callback) *Heartbeat

func (*Heartbeat) Send

func (h *Heartbeat) Send(ctx context.Context) error

Jump to

Keyboard shortcuts

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