core

package
v0.1.328-herb-868amtyd... Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 44 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig added in v0.1.214

func LoadConfig(configOptions *contracts_core.ConfigOptions) error

func NewGRPCLogger added in v0.1.279

func NewGRPCLogger() grpclog.DepthLoggerV2

NewGRPCLogger Creates a new instance of a gRPC Logger interface that redirects to zerolog

func NewUnaryServerInterceptorBuilder

func NewUnaryServerInterceptorBuilder() coreContracts.IUnaryServerInterceptorBuilder

NewUnaryServerInterceptorBuilder helper

func ValidateConfigPath

func ValidateConfigPath(configPath string) error

ValidateConfigPath just makes sure, that the path provided is a file, that can be read

Types

type Control added in v0.1.281

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

Control is the control object that manages an echo web server

func NewControl added in v0.1.281

func NewControl(runtime *Runtime) *Control

NewControl creates a new control object

func (*Control) Start added in v0.1.281

func (s *Control) Start()

Start starts the echo web server using async and futures

func (*Control) Stop added in v0.1.281

func (s *Control) Stop()

Stop ...

type PProf added in v0.1.281

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

PProf is the PProf object that manages an echo web server

func NewPProf added in v0.1.281

func NewPProf() *PProf

NewPProf creates a new PProf object

func (*PProf) Start added in v0.1.281

func (s *PProf) Start()

Start starts the echo web server using async and futures

func (*PProf) Stop added in v0.1.281

func (s *PProf) Stop()

Stop ...

type PProfServer added in v0.1.281

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

PProfServer is the PProfServer object that manages an echo web server

func NewPProfServer added in v0.1.281

func NewPProfServer() *PProfServer

NewPProfServer creates a new PProf object

func (*PProfServer) Start added in v0.1.281

func (s *PProfServer) Start()

Start starts the echo web server using async and futures

func (*PProfServer) Stop added in v0.1.281

func (s *PProfServer) Stop()

Stop ...

type Runtime added in v0.1.123

type Runtime struct {
	ServerInstances []*ServerInstance
	// contains filtered or unexported fields
}

Runtime type

func NewRuntime added in v0.1.123

func NewRuntime() *Runtime

NewRuntime returns an instance of a new Runtime

func (*Runtime) GetServerInstances added in v0.1.123

func (s *Runtime) GetServerInstances() []*ServerInstance

GetServerInstances gets the array or service instances

func (*Runtime) Start added in v0.1.123

func (s *Runtime) Start()

Start to be used in production

func (*Runtime) StartWithListenterAndPlugins added in v0.1.128

func (s *Runtime) StartWithListenterAndPlugins(lis net.Listener, plugins []contracts_plugin.IGRPCDotNetGoPlugin)

StartWithListenterAndPlugins starts up the server

func (*Runtime) Stop added in v0.1.123

func (s *Runtime) Stop()

Stop ...

func (*Runtime) Wait added in v0.1.123

func (s *Runtime) Wait()

Wait for someone to call stop

type ServerInstance

type ServerInstance struct {
	StartupManifest contracts_core.StartupManifest
	Server          *grpc.Server
	Future          async.Future[*grpcdotnetgoasync.AsyncResponse]

	ServerGRPCGatewayMux *http.Server
	FutureGRPCGatewayMux async.Future[*grpcdotnetgoasync.AsyncResponse]

	DotNetGoBuilder *grpcdotnetgo.DotNetGoBuilder
	Endpoints       []interface{}
}

ServerInstance represents an instance of a plugin

type UnaryServerInterceptorBuilder

type UnaryServerInterceptorBuilder struct {
	UnaryServerInterceptors []grpc.UnaryServerInterceptor
}

UnaryServerInterceptorBuilder struct

func (*UnaryServerInterceptorBuilder) GetUnaryServerInterceptors

func (s *UnaryServerInterceptorBuilder) GetUnaryServerInterceptors() []grpc.UnaryServerInterceptor

GetUnaryServerInterceptors helper

func (*UnaryServerInterceptorBuilder) Use

Use helper

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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