core

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(startup IStartup)

func ValidateConfigPath added in v0.1.32

func ValidateConfigPath(configPath string) error

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

Types

type Config added in v0.1.12

type Config struct {
	Environment string `mapstructure:"APPLICATION_ENVIRONMENT"`
	GRPCPort    int    `mapstructure:"GRPC_PORT"`
}

type ConfigOptions

type ConfigOptions struct {
	Destination    interface{}
	RootConfigYaml []byte
	ConfigPath     string
}

type ICoreConfig

type ICoreConfig interface {
	GetPort() int
}

type IStartup

type IStartup interface {
	GetConfigOptions() *ConfigOptions
	ConfigureServices(builder *di.Builder)
	Configure(
		serviceProvider servicesServiceProvider.IServiceProvider,
		unaryServerInterceptorBuilder *UnaryServerInterceptorBuilder)
	GetPort() int
	SetPort(port int)
	RegisterGRPCEndpoints(server *grpc.Server)
}

type IUnaryServerInterceptorBuilder

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

type UnaryServerInterceptorBuilder

type UnaryServerInterceptorBuilder struct {
	UnaryServerInterceptors []grpc.UnaryServerInterceptor
}

func (*UnaryServerInterceptorBuilder) Use

Jump to

Keyboard shortcuts

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