grpc

package
v0.0.0-...-9572309 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 (*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)

func (*TokenClient) Open

func (c *TokenClient) Open(config *goinworld.Config) 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) Open

func (c *WorldClient) Open(config *goinworld.Config) error

func (*WorldClient) Session

func (c *WorldClient) Session(ctx context.Context, token *session.Token) (*BilateralWorldSession, error)

Jump to

Keyboard shortcuts

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