Documentation
¶
Index ¶
- type Connector
- type EventHandler
- type Middleware
- type Room
- func (r *Room) AddStones(moves []*coord.Stone)
- func (r *Room) AddStonesToTrunk(t int, moves []*coord.Stone)
- func (r *Room) Board() *board.Board
- func (r *Room) Broadcast(evt event.Event)
- func (r *Room) BroadcastFullFrame()
- func (r *Room) BroadcastHubMessage(m *message.Message)
- func (r *Room) BroadcastTreeOnly()
- func (r *Room) Close() error
- func (r *Room) Current() *tree.TreeNode
- func (r *Room) DeregisterConnection(id string)
- func (r *Room) DeregisterPlugin(key string)
- func (r *Room) DisableBuffers()
- func (r *Room) EditKomi(s string)
- func (r *Room) EditPlayerBlack(s string)
- func (r *Room) EditPlayerWhite(s string)
- func (r *Room) Execute(cmd state.Command) (*state.Frame, error)
- func (r *Room) GenerateFullFrame(t state.TreeJSONType) *state.Frame
- func (r *Room) GenerateTreeOnly(t state.TreeJSONType) *state.Frame
- func (r *Room) GetAuth(user string) bool
- func (r *Room) GetColorAt(t int) color.Color
- func (r *Room) GetConnector(key string) Connector
- func (r *Room) GetFetcher() fetch.Fetcher
- func (room *Room) GetHandler(t string) EventHandler
- func (r *Room) GetInputBuffer() int64
- func (r *Room) GetLastActive() time.Time
- func (r *Room) GetLastMessages(user string) (time.Time, bool)
- func (r *Room) GetLastUser() string
- func (r *Room) GetNick(user string) (string, bool)
- func (r *Room) GetPassword() string
- func (r *Room) GetPlugin(key string) plugin.Plugin
- func (r *Room) GetState() *state.State
- func (r *Room) GetTimeout() float64
- func (r *Room) GetUserBuffer() int64
- func (r *Room) Handle(ec event.EventChannel) error
- func (r *Room) HandleAny(evt event.Event) event.Event
- func (r *Room) HasPassword() bool
- func (r *Room) HasPlugin(key string) bool
- func (r *Room) HeadColor() color.Color
- func (r *Room) ID() string
- func (r *Room) Nicks() map[string]string
- func (r *Room) NumConns() int
- func (r *Room) PushHead(x, y int, col color.Color) bool
- func (r *Room) RegisterConnection(ec event.EventChannel) string
- func (r *Room) RegisterPlugin(p plugin.Plugin, args map[string]any)
- func (r *Room) Save() *loader.LoadJSON
- func (r *Room) SaveState() *state.StateJSON
- func (r *Room) SendTo(id string, evt event.Event)
- func (r *Room) SendUserList()
- func (r *Room) SetAuth(user string, val bool)
- func (r *Room) SetAuthAll()
- func (r *Room) SetConnector(key string, c Connector)
- func (r *Room) SetFetcher(f fetch.Fetcher)
- func (r *Room) SetInputBuffer(i int64)
- func (r *Room) SetLastActive(t *time.Time)
- func (r *Room) SetLastMessages(user string, t *time.Time)
- func (r *Room) SetLastUser(user string)
- func (r *Room) SetLogger(l logx.Logger)
- func (r *Room) SetNick(id, nick string)
- func (r *Room) SetPassword(p string)
- func (r *Room) SetState(s *state.State)
- func (r *Room) SetTimeout(f float64)
- func (r *Room) SetUserBuffer(i int64)
- func (r *Room) Size() int
- func (r *Room) ToSGF() string
- func (r *Room) ToSGFIX() string
- func (r *Room) UploadSGF(sgf string) event.Event
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware func(EventHandler) EventHandler
type Room ¶
type Room struct {
// contains filtered or unexported fields
}
func (*Room) BroadcastFullFrame ¶
func (r *Room) BroadcastFullFrame()
func (*Room) BroadcastHubMessage ¶
func (*Room) BroadcastTreeOnly ¶
func (r *Room) BroadcastTreeOnly()
func (*Room) DeregisterConnection ¶
func (*Room) DeregisterPlugin ¶
func (*Room) EditPlayerBlack ¶
func (*Room) EditPlayerWhite ¶
func (*Room) GenerateFullFrame ¶
func (r *Room) GenerateFullFrame(t state.TreeJSONType) *state.Frame
func (*Room) GenerateTreeOnly ¶
func (r *Room) GenerateTreeOnly(t state.TreeJSONType) *state.Frame
func (*Room) GetConnector ¶
func (*Room) GetFetcher ¶
func (*Room) GetHandler ¶
func (room *Room) GetHandler(t string) EventHandler
func (*Room) GetInputBuffer ¶
func (*Room) GetLastActive ¶
func (*Room) GetLastUser ¶
func (*Room) GetPassword ¶
func (*Room) GetTimeout ¶
func (*Room) GetUserBuffer ¶
func (*Room) HandleAny ¶
HandleAny is only to be used in special occasions because it recreates all the handlers
func (*Room) HasPassword ¶
func (*Room) RegisterConnection ¶
func (r *Room) RegisterConnection(ec event.EventChannel) string
func (*Room) SendUserList ¶
func (r *Room) SendUserList()
func (*Room) SetAuthAll ¶
func (r *Room) SetAuthAll()
func (*Room) SetConnector ¶
func (*Room) SetFetcher ¶
func (*Room) SetInputBuffer ¶
func (*Room) SetLastActive ¶
func (*Room) SetLastUser ¶
func (*Room) SetPassword ¶
func (*Room) SetTimeout ¶
func (*Room) SetUserBuffer ¶
Click to show internal directories.
Click to hide internal directories.