- Add LiveKit client setup and token generation for room access. - Implement room management functions including CreateRoom, OpenRoom, ListRooms, and DeleteRoom. - Introduce participant management with ListParticipants and RemoveParticipant functions. - Create tests for room and participant management, ensuring proper authentication and authorization. - Add error handling for LiveKit API interactions. - Define data structures for room metadata and token responses. - Implement status endpoint for service availability check.
16 lines
371 B
Go
16 lines
371 B
Go
// Service videochat provides video chat APIs.
|
|
package videochat
|
|
|
|
import "context"
|
|
|
|
type StatusResponse struct {
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
// Status reports whether the videochat service is available.
|
|
//
|
|
//encore:api public method=GET path=/videochat/status
|
|
func Status(ctx context.Context) (*StatusResponse, error) {
|
|
return &StatusResponse{Status: "ok"}, nil
|
|
}
|