notification

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.1.1

type Client interface {
	PostCheckReports(crs *mackerel.CheckReports) error
}

type Item

type Item struct {
	OccurredAt int64
	Addr       string
	Message    string
}

type Queue

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

func NewQueue

func NewQueue(client Client, hostId string) *Queue

NewQueue is needed mackerel client, host id.

func (*Queue) Dequeue

func (q *Queue) Dequeue(ctx context.Context)

func (*Queue) Enqueue

func (q *Queue) Enqueue(item Item)

Jump to

Keyboard shortcuts

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