Documentation
¶
Overview ¶
Package room provides utilities for working with LiveKit rooms.
Index ¶
- type Client
- func (c *Client) CreateRoom(ctx context.Context, name string) (*livekit.Room, error)
- func (c *Client) DeleteRoom(ctx context.Context, name string) error
- func (c *Client) GenerateAgentToken(roomName, identity, name string) (string, error)
- func (c *Client) GenerateClientToken(roomName, identity, name string) (string, error)
- func (c *Client) GenerateToken(opts TokenOptions) (string, error)
- func (c *Client) ListParticipants(ctx context.Context, roomName string) ([]*livekit.ParticipantInfo, error)
- func (c *Client) ListRooms(ctx context.Context) ([]*livekit.Room, error)
- type Config
- type TokenOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides room management operations.
func (*Client) CreateRoom ¶
CreateRoom creates a new room.
func (*Client) DeleteRoom ¶
DeleteRoom deletes a room.
func (*Client) GenerateAgentToken ¶
GenerateAgentToken creates a token for the AI agent to join a room.
func (*Client) GenerateClientToken ¶
GenerateClientToken creates a token for a client to join a room.
func (*Client) GenerateToken ¶
func (c *Client) GenerateToken(opts TokenOptions) (string, error)
GenerateToken creates a JWT token for joining a room.
func (*Client) ListParticipants ¶
func (c *Client) ListParticipants(ctx context.Context, roomName string) ([]*livekit.ParticipantInfo, error)
ListParticipants lists participants in a room.
Click to show internal directories.
Click to hide internal directories.