server

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIs added in v1.2.0

type APIs struct {
	HostAPI          *routes.HostAPI
	ChassisAPI       *routes.ChassisAPI
	BladeByPosAPI    *routes.BladeByPosAPI
	BladeBySerialAPI *routes.BladeBySerialAPI
}

type Config added in v1.2.0

type Config struct {
	IsDebug           bool
	Address           string
	ScreenshotStorage string
}

type Server added in v1.2.0

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

func New added in v1.2.0

func New(config *Config, middlewares []gin.HandlerFunc, apis *APIs) (*Server, error)

New creates a new Server

func (*Server) Serve added in v1.2.0

func (s *Server) Serve() error

Serve start and build the webservice binding on unix socket

Jump to

Keyboard shortcuts

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