Documentation ¶
Index ¶
- Variables
- func Delete(creds auth.Creds, roomName string) error
- func GetRoomPropsKeys() []string
- func NewErrFailRoomDelete(deleteErr error) error
- func NewErrFailUnmarshal(unmarshalErr error) error
- func SendAppMessage(creds auth.Creds, params SendAppMessageParams) error
- func Update(params UpdateParams) error
- type CreateParams
- type GetManyParams
- type Privacy
- type Props
- type Room
- func Create(creds auth.Creds, params CreateParams) (*Room, error)
- func CreateWithPrefix(creds auth.Creds, params CreateParams) (*Room, error)
- func GetMany(creds auth.Creds, params *GetManyParams) ([]Room, error)
- func GetManyWithRegex(creds auth.Creds, params *GetManyParams, regex *regexp.Regexp) ([]Room, error)
- func GetOne(creds auth.Creds, roomName string) (*Room, error)
- type SendAppMessageParams
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailUnmarshal = errors.New("failed to unmarshal response body into Room") ErrFailRoomDelete = errors.New("failed to delete room") )
Functions ¶
func GetRoomPropsKeys ¶
func GetRoomPropsKeys() []string
func NewErrFailRoomDelete ¶
func NewErrFailUnmarshal ¶
func SendAppMessage ¶
func SendAppMessage(creds auth.Creds, params SendAppMessageParams) error
func Update ¶
func Update(params UpdateParams) error
Types ¶
type CreateParams ¶
type GetManyParams ¶
type Privacy ¶
type Privacy string
const ( PrivacyPrivate Privacy = "private" PrivacyPublic = "public" )
type Props ¶
type Props struct { // Exp should be a Unix timestamp, but we'll provide // some helper methods to let caller work with time.Time // as well Exp int64 `json:"exp,omitempty"` MaxParticipants int `json:"max_participants,omitempty"` StartAudioOff bool `json:"start_audio_off"` StartVideoOff bool `json:"start_video_off"` }
Props represents common properties the user can set when creating or updating a room. This does not represent _all_ properties supported by Daily rooms.
type Room ¶
type Room struct { ID string `json:"id"` Name string `json:"name"` Url string `json:"url"` Privacy Privacy `json:"privacy"` CreatedAt time.Time `json:"created_at"` Config Props `json:"config"` AdditionalProps map[string]interface{} }
Room represents a Daily room
func CreateWithPrefix ¶
func CreateWithPrefix(creds auth.Creds, params CreateParams) (*Room, error)
CreateWithPrefix creates a room with the name containing the specified prefix. The rest of the name is randomized.
func GetManyWithRegex ¶
func (*Room) UnmarshalJSON ¶
type SendAppMessageParams ¶
Click to show internal directories.
Click to hide internal directories.