service_discovery

package
v0.0.0-...-42737ae Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrFailedNonce                    = "nonce failure"
	ErrFailedProcessAlreadyRegistered = "process has already be initialized"
	ErrFailedToMarshalPayload         = "failed to marshal payload"
	ErrFailedToSaveProcessDetails     = "failed to save process details"
	ErrFailedTokenForge               = "failed to forge the token"
	ErrFailedTypeCast                 = "failed to cast type"
)
View Source
const (
	// TODO: this was removed from the chassis and I'm not sure where it should go tbh
	GlobalNonceKey = "GLOBAL_NONCE"
)

Variables

View Source
var (
	ErrFailedInitialize = "failed to init the new process"
)

Functions

This section is empty.

Types

type Controller

type Controller interface {
	ServiceDiscovery
}

func NewController

func NewController(kvController kv.Controller) Controller

type Rpc

func NewRPC

func NewRPC(logger chassis.Logger, controller Controller) Rpc

type ServiceDiscovery

type ServiceDiscovery interface {
	Finalize(ctx context.Context, log chassis.Logger, pid string) error
	Initialize(ctx context.Context, log chassis.Logger, nonce, name string) (*sdv1.ProcessIdentity, error)
	Synchronize(ctx context.Context, log chassis.Logger, details *sdv1.ClientDetails)
}

Jump to

Keyboard shortcuts

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