logfwd

package
v0.0.0-...-6dcaeb9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(registry facade.FacadeRegistry)

Register is called to expose a package of facades onto a given registry.

Types

type LastSentTracker

type LastSentTracker interface {
	io.Closer

	// Get retrieves the record ID and timestamp.
	Get() (recID int64, recTimestamp int64, err error)

	// Set records the record ID and timestamp.
	Set(recID int64, recTimestamp int64) error
}

LastSentTracker exposes the functionality of state.LastSentTracker.

type LogForwardingAPI

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

LogForwardingAPI is the concrete implementation of the api end point.

func NewLogForwardingAPI

func NewLogForwardingAPI(st LogForwardingState, auth facade.Authorizer) (*LogForwardingAPI, error)

NewLogForwardingAPI creates a new server-side logger API end point.

func (*LogForwardingAPI) GetLastSent

GetLastSent is a bulk call that gets the log forwarding "last sent" record ID for each requested target.

func (*LogForwardingAPI) SetLastSent

SetLastSent is a bulk call that sets the log forwarding "last sent" record ID for each requested target.

type LogForwardingState

type LogForwardingState interface {
	// NewLastSentTracker creates a new tracker for the given model
	// and log sink.
	NewLastSentTracker(tag names.ModelTag, sink string) LastSentTracker
}

LogForwardingState supports interacting with state for the LogForwarding facade.

Jump to

Keyboard shortcuts

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