metrics

package
v0.0.0-...-cdef871 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvelopeStorage

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

func NewEnvelopeStorage

func NewEnvelopeStorage(name, implementation string, backend storage.EnvelopeStorage) *EnvelopeStorage

func (EnvelopeStorage) CheckStalled

func (s EnvelopeStorage) CheckStalled(id api.UUID, duration time.Duration) bool

func (EnvelopeStorage) GetEventTypes

func (s EnvelopeStorage) GetEventTypes(id api.UUID) ([]string, bool)

func (EnvelopeStorage) Purge

func (s EnvelopeStorage) Purge(filter storage.EnvelopeFilter)

func (EnvelopeStorage) ReadEnvelope

func (s EnvelopeStorage) ReadEnvelope(
	id api.UUID, position storage.EnvelopeReadPos, maxsize int,
) (api.Envelope, storage.EnvelopeReadPos, error)

func (EnvelopeStorage) ReceptionStatus

ReceptionStatus returns the envelope reception status

func (EnvelopeStorage) SetEventHandler

func (s EnvelopeStorage) SetEventHandler(handler storage.EnvelopeStorageEventHandler)

func (EnvelopeStorage) Stat

func (EnvelopeStorage) StoreEnvelope

func (s EnvelopeStorage) StoreEnvelope(id api.Envelope) (storage.EnvelopeState, error)

type StorageTimer

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

func NewStorageTimer

func NewStorageTimer(storage, name, implementation string) StorageTimer

func (*StorageTimer) Time

func (t *StorageTimer) Time(function string) func(success bool)

Jump to

Keyboard shortcuts

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