backserver

package
v1.2.1-0...-837fef5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackServer

type BackServer struct {
	Config *config.Config

	StopChan chan int
	ErrChan  chan error

	Srv        *http.Server
	ListenAddr net.Addr

	Ready   bool
	DevMode bool

	GinEngine *gin.Engine
	DictCon   *apis.DictsController
	// contains filtered or unexported fields
}

func NewStaticServer

func NewStaticServer(conf *config.Config) (*BackServer, error)

func (*BackServer) DispatchIPCReq

func (bs *BackServer) DispatchIPCReq(apiName string, args map[string]interface{}) *model.Resp

func (*BackServer) GracefulStop

func (bs *BackServer) GracefulStop()

func (*BackServer) SetDebug

func (bs *BackServer) SetDebug()

func (*BackServer) SetUp

func (bs *BackServer) SetUp() error

func (*BackServer) Start

func (bs *BackServer) Start()

func (*BackServer) StaticServerBaseUrl

func (bs *BackServer) StaticServerBaseUrl() string

Jump to

Keyboard shortcuts

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