core

package
v0.1.322 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReflectTypeICoreConfig = di.GetInterfaceReflectType((*ICoreConfig)(nil))

ReflectTypeICoreConfig used when your service claims to implement ICoreConfig

View Source
var ReflectTypeIHealthServer = di.GetInterfaceReflectType((*IHealthServer)(nil))

ReflectTypeIHealthServer used when your service claims to implement IHealthServer

View Source
var ReflectTypeIStartup = di.GetInterfaceReflectType((*IStartup)(nil))

ReflectTypeIStartup used when your service claims to implement IStartup

View Source
var ReflectTypeIUnaryServerInterceptorBuilder = di.GetInterfaceReflectType((*IUnaryServerInterceptorBuilder)(nil))

ReflectTypeIUnaryServerInterceptorBuilder used when your service claims to implement IUnaryServerInterceptorBuilder

Functions

func AddScopedICoreConfig

func AddScopedICoreConfig(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddScopedICoreConfig adds a type that implements ICoreConfig

func AddScopedICoreConfigByFunc

func AddScopedICoreConfigByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddScopedICoreConfigByFunc adds a type by a custom func

func AddScopedICoreConfigByFuncWithMetadata added in v0.1.217

func AddScopedICoreConfigByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedICoreConfigByFuncWithMetadata adds a type by a custom func

func AddScopedICoreConfigWithMetadata added in v0.1.217

func AddScopedICoreConfigWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedICoreConfigWithMetadata adds a type that implements ICoreConfig

func AddScopedIHealthServer

func AddScopedIHealthServer(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddScopedIHealthServer adds a type that implements IHealthServer

func AddScopedIHealthServerByFunc

func AddScopedIHealthServerByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddScopedIHealthServerByFunc adds a type by a custom func

func AddScopedIHealthServerByFuncWithMetadata added in v0.1.217

func AddScopedIHealthServerByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIHealthServerByFuncWithMetadata adds a type by a custom func

func AddScopedIHealthServerWithMetadata added in v0.1.217

func AddScopedIHealthServerWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIHealthServerWithMetadata adds a type that implements IHealthServer

func AddScopedIStartup

func AddScopedIStartup(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddScopedIStartup adds a type that implements IStartup

func AddScopedIStartupByFunc

func AddScopedIStartupByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddScopedIStartupByFunc adds a type by a custom func

func AddScopedIStartupByFuncWithMetadata added in v0.1.217

func AddScopedIStartupByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIStartupByFuncWithMetadata adds a type by a custom func

func AddScopedIStartupWithMetadata added in v0.1.217

func AddScopedIStartupWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIStartupWithMetadata adds a type that implements IStartup

func AddScopedIUnaryServerInterceptorBuilder

func AddScopedIUnaryServerInterceptorBuilder(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddScopedIUnaryServerInterceptorBuilder adds a type that implements IUnaryServerInterceptorBuilder

func AddScopedIUnaryServerInterceptorBuilderByFunc

func AddScopedIUnaryServerInterceptorBuilderByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddScopedIUnaryServerInterceptorBuilderByFunc adds a type by a custom func

func AddScopedIUnaryServerInterceptorBuilderByFuncWithMetadata added in v0.1.217

func AddScopedIUnaryServerInterceptorBuilderByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIUnaryServerInterceptorBuilderByFuncWithMetadata adds a type by a custom func

func AddScopedIUnaryServerInterceptorBuilderWithMetadata added in v0.1.217

func AddScopedIUnaryServerInterceptorBuilderWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddScopedIUnaryServerInterceptorBuilderWithMetadata adds a type that implements IUnaryServerInterceptorBuilder

func AddSingletonICoreConfig

func AddSingletonICoreConfig(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddSingletonICoreConfig adds a type that implements ICoreConfig

func AddSingletonICoreConfigByFunc

func AddSingletonICoreConfigByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddSingletonICoreConfigByFunc adds a type by a custom func

func AddSingletonICoreConfigByFuncWithMetadata added in v0.1.217

func AddSingletonICoreConfigByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonICoreConfigByFuncWithMetadata adds a type by a custom func

func AddSingletonICoreConfigByObj

func AddSingletonICoreConfigByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)

AddSingletonICoreConfigByObj adds a prebuilt obj

func AddSingletonICoreConfigByObjWithMetadata added in v0.1.217

func AddSingletonICoreConfigByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonICoreConfigByObjWithMetadata adds a prebuilt obj

func AddSingletonICoreConfigWithMetadata added in v0.1.217

func AddSingletonICoreConfigWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonICoreConfigWithMetadata adds a type that implements ICoreConfig

func AddSingletonIHealthServer

func AddSingletonIHealthServer(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddSingletonIHealthServer adds a type that implements IHealthServer

func AddSingletonIHealthServerByFunc

func AddSingletonIHealthServerByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddSingletonIHealthServerByFunc adds a type by a custom func

func AddSingletonIHealthServerByFuncWithMetadata added in v0.1.217

func AddSingletonIHealthServerByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIHealthServerByFuncWithMetadata adds a type by a custom func

func AddSingletonIHealthServerByObj

func AddSingletonIHealthServerByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)

AddSingletonIHealthServerByObj adds a prebuilt obj

func AddSingletonIHealthServerByObjWithMetadata added in v0.1.217

func AddSingletonIHealthServerByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIHealthServerByObjWithMetadata adds a prebuilt obj

func AddSingletonIHealthServerWithMetadata added in v0.1.217

func AddSingletonIHealthServerWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIHealthServerWithMetadata adds a type that implements IHealthServer

func AddSingletonIStartup

func AddSingletonIStartup(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddSingletonIStartup adds a type that implements IStartup

func AddSingletonIStartupByFunc

func AddSingletonIStartupByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddSingletonIStartupByFunc adds a type by a custom func

func AddSingletonIStartupByFuncWithMetadata added in v0.1.217

func AddSingletonIStartupByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIStartupByFuncWithMetadata adds a type by a custom func

func AddSingletonIStartupByObj

func AddSingletonIStartupByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)

AddSingletonIStartupByObj adds a prebuilt obj

func AddSingletonIStartupByObjWithMetadata added in v0.1.217

func AddSingletonIStartupByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIStartupByObjWithMetadata adds a prebuilt obj

func AddSingletonIStartupWithMetadata added in v0.1.217

func AddSingletonIStartupWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIStartupWithMetadata adds a type that implements IStartup

func AddSingletonIUnaryServerInterceptorBuilder

func AddSingletonIUnaryServerInterceptorBuilder(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddSingletonIUnaryServerInterceptorBuilder adds a type that implements IUnaryServerInterceptorBuilder

func AddSingletonIUnaryServerInterceptorBuilderByFunc

func AddSingletonIUnaryServerInterceptorBuilderByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddSingletonIUnaryServerInterceptorBuilderByFunc adds a type by a custom func

func AddSingletonIUnaryServerInterceptorBuilderByFuncWithMetadata added in v0.1.217

func AddSingletonIUnaryServerInterceptorBuilderByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIUnaryServerInterceptorBuilderByFuncWithMetadata adds a type by a custom func

func AddSingletonIUnaryServerInterceptorBuilderByObj

func AddSingletonIUnaryServerInterceptorBuilderByObj(builder *di.Builder, obj interface{}, implementedTypes ...reflect.Type)

AddSingletonIUnaryServerInterceptorBuilderByObj adds a prebuilt obj

func AddSingletonIUnaryServerInterceptorBuilderByObjWithMetadata added in v0.1.217

func AddSingletonIUnaryServerInterceptorBuilderByObjWithMetadata(builder *di.Builder, obj interface{}, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIUnaryServerInterceptorBuilderByObjWithMetadata adds a prebuilt obj

func AddSingletonIUnaryServerInterceptorBuilderWithMetadata added in v0.1.217

func AddSingletonIUnaryServerInterceptorBuilderWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddSingletonIUnaryServerInterceptorBuilderWithMetadata adds a type that implements IUnaryServerInterceptorBuilder

func AddTransientICoreConfig

func AddTransientICoreConfig(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddTransientICoreConfig adds a type that implements ICoreConfig

func AddTransientICoreConfigByFunc

func AddTransientICoreConfigByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddTransientICoreConfigByFunc adds a type by a custom func

func AddTransientICoreConfigByFuncWithMetadata added in v0.1.217

func AddTransientICoreConfigByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientICoreConfigByFuncWithMetadata adds a type by a custom func

func AddTransientICoreConfigWithMetadata added in v0.1.217

func AddTransientICoreConfigWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientICoreConfigWithMetadata adds a type that implements ICoreConfig

func AddTransientIHealthServer

func AddTransientIHealthServer(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddTransientIHealthServer adds a type that implements IHealthServer

func AddTransientIHealthServerByFunc

func AddTransientIHealthServerByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddTransientIHealthServerByFunc adds a type by a custom func

func AddTransientIHealthServerByFuncWithMetadata added in v0.1.217

func AddTransientIHealthServerByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIHealthServerByFuncWithMetadata adds a type by a custom func

func AddTransientIHealthServerWithMetadata added in v0.1.217

func AddTransientIHealthServerWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIHealthServerWithMetadata adds a type that implements IHealthServer

func AddTransientIStartup

func AddTransientIStartup(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddTransientIStartup adds a type that implements IStartup

func AddTransientIStartupByFunc

func AddTransientIStartupByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddTransientIStartupByFunc adds a type by a custom func

func AddTransientIStartupByFuncWithMetadata added in v0.1.217

func AddTransientIStartupByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIStartupByFuncWithMetadata adds a type by a custom func

func AddTransientIStartupWithMetadata added in v0.1.217

func AddTransientIStartupWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIStartupWithMetadata adds a type that implements IStartup

func AddTransientIUnaryServerInterceptorBuilder

func AddTransientIUnaryServerInterceptorBuilder(builder *di.Builder, implType reflect.Type, implementedTypes ...reflect.Type)

AddTransientIUnaryServerInterceptorBuilder adds a type that implements IUnaryServerInterceptorBuilder

func AddTransientIUnaryServerInterceptorBuilderByFunc

func AddTransientIUnaryServerInterceptorBuilderByFunc(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), implementedTypes ...reflect.Type)

AddTransientIUnaryServerInterceptorBuilderByFunc adds a type by a custom func

func AddTransientIUnaryServerInterceptorBuilderByFuncWithMetadata added in v0.1.217

func AddTransientIUnaryServerInterceptorBuilderByFuncWithMetadata(builder *di.Builder, implType reflect.Type, build func(ctn di.Container) (interface{}, error), metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIUnaryServerInterceptorBuilderByFuncWithMetadata adds a type by a custom func

func AddTransientIUnaryServerInterceptorBuilderWithMetadata added in v0.1.217

func AddTransientIUnaryServerInterceptorBuilderWithMetadata(builder *di.Builder, implType reflect.Type, metaData map[string]interface{}, implementedTypes ...reflect.Type)

AddTransientIUnaryServerInterceptorBuilderWithMetadata adds a type that implements IUnaryServerInterceptorBuilder

func GetICoreConfigDefinition added in v0.1.217

func GetICoreConfigDefinition(ctn di.Container) *di.Def

GetICoreConfigDefinition returns that last definition registered that this container can provide

func GetICoreConfigDefinitions added in v0.1.217

func GetICoreConfigDefinitions(ctn di.Container) []*di.Def

GetICoreConfigDefinitions returns all definitions that this container can provide

func GetIHealthServerDefinition added in v0.1.217

func GetIHealthServerDefinition(ctn di.Container) *di.Def

GetIHealthServerDefinition returns that last definition registered that this container can provide

func GetIHealthServerDefinitions added in v0.1.217

func GetIHealthServerDefinitions(ctn di.Container) []*di.Def

GetIHealthServerDefinitions returns all definitions that this container can provide

func GetIStartupDefinition added in v0.1.217

func GetIStartupDefinition(ctn di.Container) *di.Def

GetIStartupDefinition returns that last definition registered that this container can provide

func GetIStartupDefinitions added in v0.1.217

func GetIStartupDefinitions(ctn di.Container) []*di.Def

GetIStartupDefinitions returns all definitions that this container can provide

func GetIUnaryServerInterceptorBuilderDefinition added in v0.1.217

func GetIUnaryServerInterceptorBuilderDefinition(ctn di.Container) *di.Def

GetIUnaryServerInterceptorBuilderDefinition returns that last definition registered that this container can provide

func GetIUnaryServerInterceptorBuilderDefinitions added in v0.1.217

func GetIUnaryServerInterceptorBuilderDefinitions(ctn di.Container) []*di.Def

GetIUnaryServerInterceptorBuilderDefinitions returns all definitions that this container can provide

func RemoveAllICoreConfig added in v0.1.144

func RemoveAllICoreConfig(builder *di.Builder)

RemoveAllICoreConfig removes all ICoreConfig from the DI

func RemoveAllIHealthServer added in v0.1.144

func RemoveAllIHealthServer(builder *di.Builder)

RemoveAllIHealthServer removes all IHealthServer from the DI

func RemoveAllIStartup added in v0.1.144

func RemoveAllIStartup(builder *di.Builder)

RemoveAllIStartup removes all IStartup from the DI

func RemoveAllIUnaryServerInterceptorBuilder added in v0.1.144

func RemoveAllIUnaryServerInterceptorBuilder(builder *di.Builder)

RemoveAllIUnaryServerInterceptorBuilder removes all IUnaryServerInterceptorBuilder from the DI

Types

type ConfigOptions

type ConfigOptions struct {
	Destination            interface{}
	RootConfig             []byte
	ConfigPath             string
	ApplicationEnvironment string `json:"applicationEnvironment" mapstructure:"APPLICATION_ENVIRONMENT"`
	PrettyLog              bool   `json:"prettyLog" mapstructure:"PRETTY_LOG"`
	LogLevel               string `json:"logLevel" mapstructure:"LOG_LEVEL"`
}

type ICoreConfig

type ICoreConfig interface {
	GetPort() int
}

ICoreConfig ...

func GetICoreConfigFromContainer

func GetICoreConfigFromContainer(ctn di.Container) ICoreConfig

GetICoreConfigFromContainer alternative to SafeGetICoreConfigFromContainer but panics of object is not present

func GetManyICoreConfigFromContainer added in v0.1.178

func GetManyICoreConfigFromContainer(ctn di.Container) []ICoreConfig

GetManyICoreConfigFromContainer alternative to SafeGetManyICoreConfigFromContainer but panics of object is not present

func SafeGetICoreConfigFromContainer

func SafeGetICoreConfigFromContainer(ctn di.Container) (ICoreConfig, error)

SafeGetICoreConfigFromContainer trys to get the object by type, will not panic, returns nil and error

func SafeGetManyICoreConfigFromContainer added in v0.1.178

func SafeGetManyICoreConfigFromContainer(ctn di.Container) ([]ICoreConfig, error)

SafeGetManyICoreConfigFromContainer trys to get the object by type, will not panic, returns nil and error

type IHealthServer

type IHealthServer interface {
	health.HealthServer
}

IHealthServer contract

func GetIHealthServerFromContainer

func GetIHealthServerFromContainer(ctn di.Container) IHealthServer

GetIHealthServerFromContainer alternative to SafeGetIHealthServerFromContainer but panics of object is not present

func GetManyIHealthServerFromContainer added in v0.1.178

func GetManyIHealthServerFromContainer(ctn di.Container) []IHealthServer

GetManyIHealthServerFromContainer alternative to SafeGetManyIHealthServerFromContainer but panics of object is not present

func SafeGetIHealthServerFromContainer

func SafeGetIHealthServerFromContainer(ctn di.Container) (IHealthServer, error)

SafeGetIHealthServerFromContainer trys to get the object by type, will not panic, returns nil and error

func SafeGetManyIHealthServerFromContainer added in v0.1.178

func SafeGetManyIHealthServerFromContainer(ctn di.Container) ([]IHealthServer, error)

SafeGetManyIHealthServerFromContainer trys to get the object by type, will not panic, returns nil and error

type IStartup

type IStartup interface {
	GetStartupManifest() StartupManifest
	GetConfigOptions() *ConfigOptions
	ConfigureServices(builder *di.Builder)
	Configure(unaryServerInterceptorBuilder IUnaryServerInterceptorBuilder)
	// GetPort returns the port number.
	// Deprecated: pass the port in the StartupManifest
	GetPort() int

	// RegisterGRPCEndpoints registers the grpc endpoints with the server.
	// Deprecated: Server endpoints are now added via the DI.  i.e. AddGreeterEndpointRegistration(...)
	RegisterGRPCEndpoints(server *grpc.Server) []interface{}
	SetRootContainer(container di.Container)
	OnPreServerStartup() error
	OnPostServerShutdown()
	SetContext(ctx context.Context)
	// contains filtered or unexported methods
}

IStartup contract

func GetIStartupFromContainer

func GetIStartupFromContainer(ctn di.Container) IStartup

GetIStartupFromContainer alternative to SafeGetIStartupFromContainer but panics of object is not present

func GetManyIStartupFromContainer added in v0.1.178

func GetManyIStartupFromContainer(ctn di.Container) []IStartup

GetManyIStartupFromContainer alternative to SafeGetManyIStartupFromContainer but panics of object is not present

func SafeGetIStartupFromContainer

func SafeGetIStartupFromContainer(ctn di.Container) (IStartup, error)

SafeGetIStartupFromContainer trys to get the object by type, will not panic, returns nil and error

func SafeGetManyIStartupFromContainer added in v0.1.178

func SafeGetManyIStartupFromContainer(ctn di.Container) ([]IStartup, error)

SafeGetManyIStartupFromContainer trys to get the object by type, will not panic, returns nil and error

type IUnaryServerInterceptorBuilder

type IUnaryServerInterceptorBuilder interface {
	GetUnaryServerInterceptors() []grpc.UnaryServerInterceptor
	Use(intercepter grpc.UnaryServerInterceptor)
}

IUnaryServerInterceptorBuilder ...

func GetIUnaryServerInterceptorBuilderFromContainer

func GetIUnaryServerInterceptorBuilderFromContainer(ctn di.Container) IUnaryServerInterceptorBuilder

GetIUnaryServerInterceptorBuilderFromContainer alternative to SafeGetIUnaryServerInterceptorBuilderFromContainer but panics of object is not present

func GetManyIUnaryServerInterceptorBuilderFromContainer added in v0.1.178

func GetManyIUnaryServerInterceptorBuilderFromContainer(ctn di.Container) []IUnaryServerInterceptorBuilder

GetManyIUnaryServerInterceptorBuilderFromContainer alternative to SafeGetManyIUnaryServerInterceptorBuilderFromContainer but panics of object is not present

func SafeGetIUnaryServerInterceptorBuilderFromContainer

func SafeGetIUnaryServerInterceptorBuilderFromContainer(ctn di.Container) (IUnaryServerInterceptorBuilder, error)

SafeGetIUnaryServerInterceptorBuilderFromContainer trys to get the object by type, will not panic, returns nil and error

func SafeGetManyIUnaryServerInterceptorBuilderFromContainer added in v0.1.178

func SafeGetManyIUnaryServerInterceptorBuilderFromContainer(ctn di.Container) ([]IUnaryServerInterceptorBuilder, error)

SafeGetManyIUnaryServerInterceptorBuilderFromContainer trys to get the object by type, will not panic, returns nil and error

type StartupManifest

type StartupManifest struct {
	Name               string `json:"name" mapstructure:"NAME"`
	Version            string `json:"version" mapstructure:"VERSION"`
	Port               int    `json:"port" mapstructure:"PORT"`
	GRPCGatewayEnabled bool   `json:"grpcGatewayEnabled" mapstructure:"GRPC_GATEWAY_ENABLED"`
	RESTPort           int    `json:"restPort" mapstructure:"REST_PORT"`
}

StartupManifest informational

type UnimplementedStartup added in v0.1.281

type UnimplementedStartup struct {
	Context context.Context
}

UnimplementedStartup helper ...

func (UnimplementedStartup) GetPort added in v0.1.281

func (u UnimplementedStartup) GetPort() int

GetPort ...

func (UnimplementedStartup) OnPostServerShutdown added in v0.1.281

func (u UnimplementedStartup) OnPostServerShutdown()

OnPostServerShutdown ...

func (UnimplementedStartup) OnPreServerStartup added in v0.1.281

func (u UnimplementedStartup) OnPreServerStartup() error

OnPreServerStartup ...

func (UnimplementedStartup) RegisterGRPCEndpoints added in v0.1.281

func (u UnimplementedStartup) RegisterGRPCEndpoints(_ *grpc.Server) []interface{}

RegisterGRPCEndpoints legacy

func (*UnimplementedStartup) SetContext added in v0.1.310

func (u *UnimplementedStartup) SetContext(ctx context.Context)

Jump to

Keyboard shortcuts

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