logfwd

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.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 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 NewFacade

func NewFacade(st *state.State, _ facade.Resources, auth facade.Authorizer) (*LogForwardingAPI, error)

NewFacade creates a new LogForwardingAPI. It is used for API registration.

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