core

package
v0.1.188 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 []pluginContracts.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 coreContracts.StartupManifest
	Server          *grpc.Server
	Future          async.Future
	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

Jump to

Keyboard shortcuts

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