server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Port int `default:"4201" envconfig:"HTTP_BIND_PORT"`
}

type Config

type Config struct {
	RPCConfig
	APIConfig
}

type RPCConfig

type RPCConfig struct {
	Port        int `default:"4200" envconfig:"GRPC_BIND_PORT"`
	MessageSize int `default:"20971520" envconfig:"GRPC_MSG_SIZE"`
}

type Server

type Server interface {
	Init(*Config, logger.Logger) Server

	Start(context.Context) error
	Stop(context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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