server

package
v0.0.0-...-c0604f6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host             string
	Port             int
	HostKeyPath      string
	Store            *store.Store
	Hub              *hub.Hub
	JukeboxEngine    *jukebox.Engine
	SudokuGame       *sudoku.Game
	PollStore        *poll.Store
	Bartender        *bartender.Bartender
	TavernName       string
	TavernDomain     string
	Tagline          string
	OwnerName        string
	OwnerFingerprint string
	FirstRoom        string
	RoomTypes        map[string]string
	GifClient        *gif.KlipyClient
	WargameStore     *wargame.Store
	Searcher         *search.Searcher
	DMStore          *dm.Store
	RedditClient     *reddit.Client
	MysteryEngine    *mystery.Engine
}

type Server

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

func New

func New(cfg Config) (*Server, error)

func (*Server) Shutdown

func (s *Server) Shutdown(timeout time.Duration) error

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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