server

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoSettings

type AutoSettings struct {
	ErrorMessage string
}

type CharacterSettings

type CharacterSettings struct {
	ErrorMessage string
	Supervisor   string
	Config       *config.CharacterCfg
	EnabledRuns  []string
	DisabledRuns []string
	AvailableTZs map[int]string
	RecipeList   []string
}

type Client added in v0.5.0

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

type ConfigData

type ConfigData struct {
	ErrorMessage string
	*config.KooloCfg
}

type DropData added in v0.5.0

type DropData struct {
	NumberOfDrops int
	Character     string
	Drops         []data.Drop
}

type HttpServer

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

func New

func New(logger *slog.Logger, manager *koolo.SupervisorManager) (*HttpServer, error)

func (*HttpServer) BroadcastStatus added in v0.5.0

func (s *HttpServer) BroadcastStatus()

func (*HttpServer) Listen

func (s *HttpServer) Listen(port int) error

func (*HttpServer) Stop

func (s *HttpServer) Stop() error

type IndexData

type IndexData struct {
	ErrorMessage string
	Version      string
	Status       map[string]koolo.Stats
	DropCount    map[string]int
}

type WebSocketServer added in v0.5.0

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

func NewWebSocketServer added in v0.5.0

func NewWebSocketServer() *WebSocketServer

func (*WebSocketServer) HandleWebSocket added in v0.5.0

func (s *WebSocketServer) HandleWebSocket(w http.ResponseWriter, r *http.Request)

func (*WebSocketServer) Run added in v0.5.0

func (s *WebSocketServer) Run()

Jump to

Keyboard shortcuts

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