Documentation ¶
Index ¶
- Constants
- func DefaultHTTPClient() *http.Client
- func HMAC256(text, salt string) (string, error)
- type API
- type Authentication
- type Client
- type ClientOpt
- type GrantVideoTokenRequest
- type RoleType
- type SessionEndedPayload
- type SessionEndedPayloadObject
- type SessionStartedPayload
- type SessionStartedPayloadObject
- type Token
- type URLCallbackChallengePayload
- type URLCallbackChallengeResponse
- type Video
- type VideoClaims
- type VideoVersion
- type WebhookCallBackRequest
Constants ¶
View Source
const ( SessionStartedEvent = "session.started" SessionEndedEvent = "session.ended" )
Session
View Source
const CallBackURLValidationEvent = "endpoint.url_validation"
Callback URL Validation Event
Variables ¶
This section is empty.
Functions ¶
func DefaultHTTPClient ¶
Types ¶
type API ¶
type API interface { Authentication Video }
type Authentication ¶
type Authentication interface {
GrantVideoToken(ctx context.Context, req GrantVideoTokenRequest) (Token, error)
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GrantVideoToken ¶
type ClientOpt ¶
func WithHTTPClient ¶
type GrantVideoTokenRequest ¶
type SessionEndedPayload ¶
type SessionEndedPayload struct { AccountID string `json:"account_id"` Object SessionEndedPayloadObject `json:"object"` }
type SessionStartedPayload ¶
type SessionStartedPayload struct { AccountID string `json:"account_id"` Object SessionStartedPayloadObject `json:"object"` }
type URLCallbackChallengePayload ¶
type URLCallbackChallengePayload struct {
PlainToken string `json:"plainToken"`
}
type URLCallbackChallengeResponse ¶
type URLCallbackChallengeResponse struct { PlainToken string `json:"plainToken"` EncryptedToken string `json:"encryptedToken"` }
func Challenger ¶
func Challenger(payload json.RawMessage, webhookSecretToken string) (URLCallbackChallengeResponse, error)
type VideoClaims ¶
type VideoClaims struct { AppKey string `json:"app_key"` RoleType RoleType `json:"role_type"` TPC string `json:"tpc"` Version VideoVersion `json:"version"` UserIdentity *string `json:"user_identity,omitempty"` SessionKey *string `json:"session_key,omitempty"` GeoRegions *string `json:"geo_regions,omitempty"` CloudRecordingOption *int `json:"cloud_recording_option,omitempty"` CloudRecordingElection *int `json:"cloud_recording_election,omitempty"` TelemetryTrackingID *string `json:"telemetry_tracking_id,omitempty"` jwt.RegisteredClaims }
VideoClaims references: https://developers.zoom.us/docs/video-sdk/auth/#generate-a-video-sdk-jwt
type WebhookCallBackRequest ¶
type WebhookCallBackRequest struct { Payload json.RawMessage `json:"payload"` Event string `json:"event"` EventTs int64 `json:"event_ts"` }
func CallBackRequest ¶
func CallBackRequest(r *http.Request) (WebhookCallBackRequest, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.