getnames

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameKey      string = "agent:%s:name"
	NextKey      string = "NEXTKEY"
	NextKeyValue string = "%d:%d:%d"
	LenNames     int    = 10
	CounterKey   string = "COUNTER"
)

Variables

This section is empty.

Functions

func GetCurrentName

func GetCurrentName(db *buntdb.DB) (string, error)

func InitializeData

func InitializeData(db *buntdb.DB) error

func Run

func Run()

Types

type MyHandler

type MyHandler struct {
	DB *buntdb.DB
}

func (*MyHandler) GetNameCounts

func (h *MyHandler) GetNameCounts(w http.ResponseWriter, r *http.Request)

func (*MyHandler) GetNameRobin

func (h *MyHandler) GetNameRobin(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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