server

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbClientPoolTakeRetryDelayMs = 100

	// DbClientPoolTakeAttemptsCountLimit is the limit for number of attempts
	// to try to get a client from the pool.
	// (100ms * 10) * 60 => 1 Minute.
	DbClientPoolTakeAttemptsCountLimit = 10 * 60
)
View Source
const (
	ServerName = "SFHS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(stn *ss.Settings) (srv *Server, err error)

func (*Server) GetDbDsnA

func (srv *Server) GetDbDsnA() (dsn string)

func (*Server) GetDbDsnB

func (srv *Server) GetDbDsnB() (dsn string)

func (*Server) GetListenDsn

func (srv *Server) GetListenDsn() (dsn string)

func (*Server) GetStopChannel

func (srv *Server) GetStopChannel() *chan bool

func (*Server) GetWorkMode added in v0.14.0

func (srv *Server) GetWorkMode() (modeId byte)

func (*Server) Start

func (srv *Server) Start() (cerr *ce.CommonError)

func (*Server) Stop

func (srv *Server) Stop() (cerr *ce.CommonError)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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