server

package
v0.0.0-...-e030966 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModelOption

func GetModelOption(s ssh.Session, options []string, server *Server, sess ssh.Session) *tea.Program

func Model

func Model(options []string, server *Server, sess ssh.Session) *parentModel

func NewBasicBot

func NewBasicBot(name string, lob *lobby) basicBot

BASIC

func NewCreateModel

func NewCreateModel(com *commonModel) *createModel

func NewGame

func NewGame(com *commonModel) *gameModel

func NewInfoModel

func NewInfoModel(com *commonModel) *infoModel

func NewJoinModel

func NewJoinModel(com *commonModel) *joinModel

func NewLobby

func NewLobby(done chan string, id string) *lobby

func NewManager

func NewManager() *manager

func NewMenu

func NewMenu(com *commonModel) *menuModel

func NewPlayer

func NewPlayer(com *commonModel) *player

func NewSpinner

func NewSpinner() spinnerModel

func NewStockfishBot

func NewStockfishBot(name string, depth int, lob *lobby) stockfishBot

STOCKFISH

func NewStockfishModel

func NewStockfishModel(com *commonModel) *stockfishModel

Types

type Server

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

func NewServer

func NewServer(path, host string, port int, c1 *mongo.Collection) (*Server, error)

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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