server

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HttpPort  int
	HttpsPort int
	Debug     bool
	Pprof     bool
	Gzip      bool
	Domain    string
	Https     bool
}

func (Config) HTTPSString

func (c Config) HTTPSString() string

HTTPSString ...

func (Config) HTTPString

func (c Config) HTTPString() string

HTTPString ...

type GateServer

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

GateServer ...

func NewGateServer

func NewGateServer(lc fx.Lifecycle,
	eventBus bus.Bus,
	gateConfig *models.GateConfig) (gate *GateServer)

NewGateServer ...

func (*GateServer) Shutdown

func (g *GateServer) Shutdown(ctx context.Context) (err error)

Shutdown ...

func (*GateServer) Start

func (g *GateServer) Start(ctx context.Context) (err error)

Start ...

type Server

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

func NewServer

func NewServer(cfg *Config, proxy *wsp.Server) *Server

func (*Server) Shutdown

func (a *Server) Shutdown(ctx context.Context) (err error)

Shutdown ...

func (*Server) Start

func (a *Server) Start() (err error)

Start ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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