sessions

package
v0.0.0-...-c0bf174 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ESC       = "\x1b"
	CSI       = ESC + "[" // Control Sequence Introducer
	Reset     = CSI + "0m"
	Bold      = CSI + "1m"
	Normal    = CSI + "22m"
	Black     = CSI + "30m"
	Red       = CSI + "31m"
	Green     = CSI + "32m"
	Yellow    = CSI + "33m"
	Blue      = CSI + "34m"
	Magenta   = CSI + "35m"
	Cyan      = CSI + "36m"
	White     = CSI + "37m"
	BGBlack   = CSI + "40m"
	BGRed     = CSI + "41m"
	BGGreen   = CSI + "42m"
	BGYellow  = CSI + "43m"
	BGBlue    = CSI + "44m"
	BGMagenta = CSI + "45m"
	BGCyan    = CSI + "46m"
	BGWhite   = CSI + "47m"

	// Setup brown as an alias for yellow
	Brown   = Yellow
	BGBrown = BGYellow

	// WolfMUD specific meta colors
	Good   = Green
	Info   = Yellow
	Bad    = Red
	Prompt = Magenta
)

Variables

View Source
var Colors = map[string][3]string{
	Reset:     {"white", "", ""},
	Bold:      {"", "", "bold"},
	Normal:    {"", "", "normal"},
	Black:     {"black", "", ""},
	Red:       {"red", "", ""},
	Green:     {"green", "", ""},
	Yellow:    {"yellow", "", ""},
	Blue:      {"blue", "", ""},
	Magenta:   {"magenta", "", ""},
	Cyan:      {"cyan", "", ""},
	White:     {"white", "", ""},
	BGBlack:   {"", "black", ""},
	BGRed:     {"", "red", ""},
	BGGreen:   {"", "green", ""},
	BGYellow:  {"", "yellow", ""},
	BGBlue:    {"", "blue", ""},
	BGMagenta: {"", "magenta", ""},
	BGCyan:    {"", "cyan", ""},
	BGWhite:   {"", "white", ""},
}

Functions

This section is empty.

Types

type Sessions

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

func New

func New(conf *webconfig.System) *Sessions

func (*Sessions) Command

func (s *Sessions) Command(w http.ResponseWriter, r *http.Request)

func (*Sessions) Interface

func (s *Sessions) Interface(w http.ResponseWriter, r *http.Request)

func (*Sessions) Message

func (s *Sessions) Message(w http.ResponseWriter, r *http.Request)

func (*Sessions) Shutdown

func (s *Sessions) Shutdown()

Jump to

Keyboard shortcuts

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