manager

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Component = &component.Component{
	Dependencies: component.Components{
		grpc.Component,
		grpcClientConfig.Component,
		manager.Component,
		repeater.Component,
	},
	Init: component.StepFunc(func(container container.Container) error {
		return container.Provide(NewService)
	}),
	PreExecute: component.StepFunc(func(container container.Container) error {
		return container.Invoke(func(r repeater.Repeater, s *Service, grpc *grpc.Server, delayConfig *manager.Delay) error {
			service.RegisterReplicaServer(grpc.GetGRPC(), s)

			return r.AddProcess(repeater.NewUnlockTask("cluster.grpc.replica", delayConfig.SyncState, s.Process))
		})
	}),
}

Functions

This section is empty.

Types

type Service

type Service struct {
	service.UnimplementedReplicaServer
	// contains filtered or unexported fields
}

func NewService

func NewService(delayConfig *managerConfig.Delay, manager cluster.Manager, grpcConfig *grpcClientConfig.Config, logger logger.Logger, closer closer.Closer) *Service

func (*Service) Process

func (s *Service) Process(_ context.Context) (err error)

func (*Service) Subscribe

func (s *Service) Subscribe(meta *model.Meta, st grpc.ServerStreamingServer[model.Stream]) (err error)

Jump to

Keyboard shortcuts

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