server

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

Types

type Server

type Server struct {
	Logger clis.Logger

	BindAddress           string
	BindWithDualStack     bool
	EnableTls             bool
	TlsCertFile           string
	TlsPrivateKeyFile     string
	TlsCertDir            string
	TlsAutoCertDomains    []string
	ConnQPS               int
	ConnBurst             int
	WebsocketConnMaxPerIP int
	GopoolWorkerFactor    int

	DataSourceDir        string
	DataSourceLockMemory bool
}

func New

func New() *Server

func (*Server) Action

func (r *Server) Action(cmd *cli.Command)

func (*Server) Before

func (r *Server) Before(cmd *cli.Command)

func (*Server) Flags

func (r *Server) Flags(cmd *cli.Command)

func (*Server) Run

func (r *Server) Run(c context.Context) error

Jump to

Keyboard shortcuts

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