service

package
v1.0.1-0...-336119c Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is the implementation of the ChiefOfState service

func New

func New(config *config.Config, cluster *parti.Cluster, logger log.Logger) *Service

New creates an instance of Service

func (*Service) GetState

func (s *Service) GetState(ctx context.Context, request *cospb.GetStateRequest) (*cospb.GetStateResponse, error)

GetState implementation

func (*Service) ProcessCommand

func (s *Service) ProcessCommand(ctx context.Context, request *cospb.ProcessCommandRequest) (*cospb.ProcessCommandResponse, error)

ProcessCommand implementation

func (*Service) RegisterService

func (s *Service) RegisterService(sv *grpc.Server)

RegisterService registers the gRPC service

Jump to

Keyboard shortcuts

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