server

package
v0.0.0-...-90d4b8e Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entrypoint

func Entrypoint(conf *config.Config)

Types

type ServerContext

type ServerContext struct {
	Conf    *config.Config
	Chooser *weightedrand.Chooser
	Start   time.Time
	End     time.Time
}

func NewContext

func NewContext(conf *config.Config) *ServerContext

func (*ServerContext) Choose

func (s *ServerContext) Choose() []byte

func (*ServerContext) RequestsForSecond

func (s *ServerContext) RequestsForSecond() int64

Jump to

Keyboard shortcuts

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