server

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CounterRate

func CounterRate() int64

CounterRate return the rate of EPS

func Start

func Start(cfg Config) (err error)

Start the server

func Stop added in v0.2.1

func Stop() (err error)

Stop the server

Types

type Config added in v0.2.1

type Config struct {
	EvtChan         chan<- event.NormalizedEvent
	BpChan          <-chan bool
	StopChan        chan struct{}
	ErrChan         <-chan error
	Confd           string
	Webd            string
	WriteableConfig bool
	Pprof           bool
	Mode            string
	MaxEPS          int
	MinEPS          int
	MsqCluster      string
	MsqPrefix       string
	NodeName        string
	Addr            string
	Port            int
	WebSocket       bool
}

Config define the struct used to initialize server

Jump to

Keyboard shortcuts

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