server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterRoutes

func RegisterRoutes(server *Server, handler *handler.Handler)

Types

type Config

type Config struct {
	ServerPort string `yaml:"server_port"`
}

func NewConfig

func NewConfig(provider config.Provider) (*Config, error)

type Params

type Params struct {
	fx.In

	Config     *Config
	Logger     *logrus.Logger
	Lifecycle  fx.Lifecycle
	Shutdowner fx.Shutdowner
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(p Params) *Server

func (*Server) Run

func (s *Server) Run() error

func (*Server) Shutdown

func (s *Server) Shutdown() error

func (*Server) WithLogging

Jump to

Keyboard shortcuts

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