cache

package
v0.4.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Local *localCache

Functions

func New

func New(maxSize int, reduce int) *localCache

New creates a new localCache

Types

type Event

type Event int16

Enum for Event

const (
	EventPing Event = iota
	EventGrace
	EventFailed
	EventSend
)

Event Enum

func (Event) String

func (s Event) String() string

String returns the string representation of the Event

type History

type History struct {
	Time    time.Time         `mapstructure:"time"`
	Event   Event             `mapstructure:"event"`
	Message string            `mapstructure:"message"`
	Details map[string]string `mapstructure:"details"`
}

History is the struct for the history of a heartbeat

Jump to

Keyboard shortcuts

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