Documentation ¶
Index ¶
- Constants
- type Assets
- type Character
- type Connection
- func (c *Connection) Close()
- func (c *Connection) GenerateSessionToken(ctx context.Context) (*Token, error)
- func (c *Connection) GetCharactersList(ctx context.Context) ([]*Character, error)
- func (c *Connection) IsActive() bool
- func (c *Connection) IsAutoReconnect() bool
- func (c *Connection) Open(ctx context.Context) error
- func (c *Connection) SendAudio(chunk []byte) error
- func (c *Connection) SendText(text string) error
- func (c *Connection) SendTrigger(name string, parameters ...goinworld.TriggerParameter) error
- func (c *Connection) SetCurrentCharacter(characterId string)
- type Scene
- type Token
Constants ¶
View Source
const ExpirationDelta = 5 * time.Minute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { OnDisconnect func() OnError func(err error) // maybe make it so all errors go to this function OnMessage func(packet *goinworld.InworldPacket) // contains filtered or unexported fields }
func NewConnection ¶
func NewConnection() *Connection
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) GenerateSessionToken ¶
func (c *Connection) GenerateSessionToken(ctx context.Context) (*Token, error)
func (*Connection) GetCharactersList ¶
func (c *Connection) GetCharactersList(ctx context.Context) ([]*Character, error)
func (*Connection) IsActive ¶
func (c *Connection) IsActive() bool
func (*Connection) IsAutoReconnect ¶
func (c *Connection) IsAutoReconnect() bool
func (*Connection) SendAudio ¶
func (c *Connection) SendAudio(chunk []byte) error
func (*Connection) SendText ¶
func (c *Connection) SendText(text string) error
func (*Connection) SendTrigger ¶
func (c *Connection) SendTrigger(name string, parameters ...goinworld.TriggerParameter) error
func (*Connection) SetCurrentCharacter ¶
func (c *Connection) SetCurrentCharacter(characterId string)
SetCurrentCharacter sets which character you are currently talking to
Click to show internal directories.
Click to hide internal directories.