Documentation ¶
Index ¶
- Constants
- Variables
- type BilateralWorldSession
- type Generator
- func (g *Generator) NewBasePacket(utteranceId, interactionId bool) *packets.InworldPacket
- func (g *Generator) NewDataChunkPacket(data []byte, dataType packets.DataChunk_DataType) *packets.InworldPacket
- func (g *Generator) NewTextPacket(text string) *packets.InworldPacket
- func (g *Generator) NewTriggerPacket(name string, parameters []*packets.CustomEvent_Parameter) *packets.InworldPacket
- type TokenClient
- type WorldClient
- func (c *WorldClient) Close() error
- func (c *WorldClient) LoadScene(ctx context.Context, name string, token *session.Token, ...) (*engine.LoadSceneResponse, error)
- func (c *WorldClient) Open(config *goinworld.Config) error
- func (c *WorldClient) Session(ctx context.Context, token *session.Token) (*BilateralWorldSession, error)
Constants ¶
View Source
const ClientId = "go"
Variables ¶
View Source
var UserAgent = "go-inworld/"
Functions ¶
This section is empty.
Types ¶
type BilateralWorldSession ¶
type BilateralWorldSession struct { Incoming chan *packets.InworldPacket Done chan error // will send nil when closed gracefully, sends errors // contains filtered or unexported fields }
func (*BilateralWorldSession) Send ¶
func (s *BilateralWorldSession) Send(packet *packets.InworldPacket) error
func (*BilateralWorldSession) Stop ¶
func (s *BilateralWorldSession) Stop() error
type Generator ¶
type Generator struct {
TargetId string
}
func (*Generator) NewBasePacket ¶
func (g *Generator) NewBasePacket(utteranceId, interactionId bool) *packets.InworldPacket
func (*Generator) NewDataChunkPacket ¶
func (g *Generator) NewDataChunkPacket(data []byte, dataType packets.DataChunk_DataType) *packets.InworldPacket
func (*Generator) NewTextPacket ¶
func (g *Generator) NewTextPacket(text string) *packets.InworldPacket
func (*Generator) NewTriggerPacket ¶
func (g *Generator) NewTriggerPacket(name string, parameters []*packets.CustomEvent_Parameter) *packets.InworldPacket
type TokenClient ¶
type TokenClient struct {
// contains filtered or unexported fields
}
func (*TokenClient) Close ¶
func (c *TokenClient) Close() error
func (*TokenClient) GenerateSessionToken ¶
func (c *TokenClient) GenerateSessionToken(ctx context.Context, key *goinworld.ApiKey) (*studioTokens.SessionAccessToken, error)
type WorldClient ¶
type WorldClient struct {
// contains filtered or unexported fields
}
func (*WorldClient) Close ¶
func (c *WorldClient) Close() error
func (*WorldClient) LoadScene ¶
func (c *WorldClient) LoadScene(ctx context.Context, name string, token *session.Token, user *engine.UserRequest, capabilities *engine.CapabilitiesRequest, client *engine.ClientRequest) (*engine.LoadSceneResponse, error)
func (*WorldClient) Session ¶
func (c *WorldClient) Session(ctx context.Context, token *session.Token) (*BilateralWorldSession, error)
Click to show internal directories.
Click to hide internal directories.