server

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBaseLevelOption

func NewBaseLevelOption() *baseLevelOption

func NewConfigInitOption

func NewConfigInitOption() *configInitOption

func NewCurrentIdOption

func NewCurrentIdOption() *currentIdOption

func NewPoolOption

func NewPoolOption() *poolOption

func NewProtocolOption

func NewProtocolOption() *protocolOption

func NewReloadOption

func NewReloadOption() *reloadOption

func NewRunnerOption

func NewRunnerOption() *runnerOption

func NewStoreOption

func NewStoreOption() *storeOption

func NewTimerOption

func NewTimerOption() *timerOption

func NewTransportersOption

func NewTransportersOption() *transportersOption

func NewWorkerOption

func NewWorkerOption() *workerOption

Types

type DelayQueue

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

func NewDelayQueue

func NewDelayQueue(opts ...InitOption) *DelayQueue

func (*DelayQueue) Run

func (dq *DelayQueue) Run() error

func (*DelayQueue) Stop

func (dq *DelayQueue) Stop(_ role.StopType) error

type InitOption

type InitOption interface {
	Run(*DelayQueue) error
	Stop(*DelayQueue) error
}

func AcquireServerInits

func AcquireServerInits() []InitOption

type InitStoreFunc

type InitStoreFunc func(*DelayQueue) error

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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