registration

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package registration provides the Registration gRPC service implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ShardStorage    storage.Storage // For shard-scoped writes (agent registration)
	ClusterStorage  storage.Storage // For cluster-scoped writes (operator registration)
	SecretsStore    secrets.Store
	LocalDB         *localdb.DB
	InstanceManager *instances.Manager
	ConfigLoader    *config.Loader
	IsShardLeader   func() bool // For agent registration
	IsClusterLeader func() bool // For operator registration
	Logger          *slog.Logger
}

Options contains options for creating a RegistrationService

type Service

type Service struct {
	proto.UnimplementedRegistrationServiceServer
	// contains filtered or unexported fields
}

Service implements the RegistrationService gRPC service

func New

func New(opts Options) (*Service, error)

New creates a new RegistrationService

func (*Service) RegisterAgent

func (*Service) RegisterOperator

Jump to

Keyboard shortcuts

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