Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Events() <-chan *mafiapb.GameEvent
- func (c *Client) ForwardEvents()
- func (c *Client) GetState() (*mafiapb.GetGameStateResponse, error)
- func (c *Client) SendMessage(content string) (receivers uint, err error)
- func (c *Client) VoteKick(username string) error
- func (c *Client) VoteKill(username string) error
- type Engine
- type Messenger
Constants ¶
View Source
const MessengerBufferSize = 16
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ForwardEvents ¶
func (c *Client) ForwardEvents()
func (*Client) SendMessage ¶
type Messenger ¶
type Messenger struct {
// contains filtered or unexported fields
}
func NewMessenger ¶
Click to show internal directories.
Click to hide internal directories.