server

package
v0.0.0-...-99cfe89 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMicroserviceName

func GetMicroserviceName(cfg *config.Config) string

func RegisterGrpcServices

func RegisterGrpcServices(grpcServer *grpc.Server, services *service.Services)

Types

type Server

type Server struct {
	Config          *config.Config
	Log             logger.Logger
	Repositories    *repository.Repositories
	Services        *service.Services
	CommandHandlers *command.CommandHandlers
	AggregateStore  eventstore.AggregateStore
	GrpcServer      *grpc.Server
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *config.Config, log logger.Logger) *Server

func (*Server) NewEventProcessorGrpcServer

func (server *Server) NewEventProcessorGrpcServer() (func() error, *grpc.Server, error)

func (*Server) Start

func (server *Server) Start(parentCtx context.Context) error

Jump to

Keyboard shortcuts

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