lifeflag

package
v0.0.0-...-6248505 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ErrEntityNotFound is a convenience define of the
	// lifeflag.ErrEntityNotFound error. This define makes it so users are not
	// bound to the internal implementation details of this api client.
	ErrEntityNotFound = lifeflag.ErrEntityNotFound
)

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

Functions

This section is empty.

Types

type Client

type Client interface {
	Life(context.Context, names.Tag) (life.Value, error)
	Watch(context.Context, names.Tag) (watcher.NotifyWatcher, error)
}

Client is the client used for connecting to the life flag facade.

func NewClient

func NewClient(caller base.APICaller, options ...Option) Client

NewClient creates a new life flag client.

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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