apiserver

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer() func(params NewGRPCServerParams) *GRPCServer

func NewGatewayServer

func NewGatewayServer() func(params NewGatewayServerParams) (*GatewayServer, error)

func RunGRPCServer

func RunGRPCServer() func(logger *logger.Logger, server *GRPCServer) error

func RunGatewayServer

func RunGatewayServer() func(logger *logger.Logger, server *GatewayServer) error

Types

type GRPCServer

type GRPCServer struct {
	ListenAddr string
	// contains filtered or unexported fields
}

type GatewayServer

type GatewayServer struct {
	ListenAddr     string
	GRPCServerAddr string
	// contains filtered or unexported fields
}

type NewGRPCServerParams

type NewGRPCServerParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Config    *configs.Config
	Logger    *logger.Logger
	Register  *grpcpkg.Register
}

type NewGatewayServerParams

type NewGatewayServerParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Config    *configs.Config
	Register  *grpcpkg.Register
	Logger    *logger.Logger
	Otel      *libs.Otel
	RCON      *rcon.RCON
}

Jump to

Keyboard shortcuts

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