accessor

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accessor

type Accessor interface {
	GRPC(addr string) NoLeaderRunnableFunc
	GrpcUds() NoLeaderRunnableFunc
	HTTP(addr string, prefix string) NoLeaderRunnableFunc
}

func New

func New(e api.FeatureManager, logger logr.Logger) Accessor

type NoLeaderRunnableFunc

type NoLeaderRunnableFunc func(context.Context) error

NoLeaderRunnableFunc implements Runnable using a function that's run on every instance (not only the leader). It's very important that the given function block until it's done running.

func (NoLeaderRunnableFunc) NeedLeaderElection

func (r NoLeaderRunnableFunc) NeedLeaderElection() bool

NeedLeaderElection make sure the Runnable will run on every instance

func (NoLeaderRunnableFunc) Start

Start implements Runnable.

Jump to

Keyboard shortcuts

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