api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Config  ServerConfig
	Echo    *echo.Echo
	Manager *manager.Manager
}

func DefaultServerFromEnv

func DefaultServerFromEnv() *Server

func NewServer

func NewServer(config ServerConfig) *Server

func (*Server) InitManager

func (s *Server) InitManager(ctx context.Context) error

func (*Server) Ready

func (s *Server) Ready() bool

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Start

func (s *Server) Start() error

type ServerConfig

type ServerConfig struct {
	Address string
	Port    int
}

func DefaultServerConfigFromEnv

func DefaultServerConfigFromEnv() ServerConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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