Back to godoc.org

Package server

v0.0.0-...-7c21e21
Latest Go to latest

The latest major version is v2.

Published: Jul 27, 2020 | License: Apache-2.0 | Module: github.com/baetyl/baetyl-cloud

Index

Variables

var (
	HeaderCommonName = "common-name"
)

type ActiveServer

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

func NewActiveServer

func NewActiveServer(config *config.CloudConfig) (*ActiveServer, error)

NewActiveServer new active server

func (*ActiveServer) Close

func (s *ActiveServer) Close()

Close close server

func (*ActiveServer) GetRoute

func (s *ActiveServer) GetRoute() *gin.Engine

GetRoute get router

func (*ActiveServer) InitRoute

func (s *ActiveServer) InitRoute()

func (*ActiveServer) Run

func (s *ActiveServer) Run()

Run run server

type AdminServer

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

AdminServer admin server

func NewAdminServer

func NewAdminServer(config *config.CloudConfig) (*AdminServer, error)

NewAdminServer create admin server

func (*AdminServer) Close

func (s *AdminServer) Close()

Close close server

func (*AdminServer) GetRoute

func (s *AdminServer) GetRoute() *gin.Engine

GetRoute get router

func (*AdminServer) InitRoute

func (s *AdminServer) InitRoute()

InitRoute init router

func (*AdminServer) Run

func (s *AdminServer) Run()

Run run server

type NodeServer

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

func NewNodeServer

func NewNodeServer(config *config.CloudConfig) (*NodeServer, error)

NewNodeServer new server

func (*NodeServer) Close

func (s *NodeServer) Close()

Close close server

func (*NodeServer) GetRoute

func (s *NodeServer) GetRoute() *gin.Engine

GetRoute get router

func (*NodeServer) InitRoute

func (s *NodeServer) InitRoute()

func (*NodeServer) Run

func (s *NodeServer) Run()

Run run server

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier