requests

package
v0.0.0-...-1753806 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptFriendRequest

type AcceptFriendRequest struct {
	RequestID string `validate:"required" form:"request_id"`
}

type AddSubtitleRequest

type AddSubtitleRequest struct {
	Lang string `validate:"required"`
}

type AddSubtitlesRequest

type AddSubtitlesRequest struct {
	Subtitles []models.Subtitle `json:"subtitles" validate:"required,gt=0,dive,required"`
}

type CreateAuthTokenRequest

type CreateAuthTokenRequest struct {
	User string `validate:"required" form:"user"`
	Pass string `validate:"required" form:"pass"`
}

type CreateMessageRequest

type CreateMessageRequest struct {
	Content string `validate:"required" form:"content"`
}

type CreateUserRequest

type CreateUserRequest struct {
	Fullname             string `validate:"required" form:"username"`
	Password             string `validate:"required" form:"password"`
	Username             string `validate:"required" form:"username"`
	Email                string `validate:"required,email" form:"email"`
	PasswordConfirmation string `validate:"required" form:"password_confirmation"`
}

type InviteToTheaterRequest

type InviteToTheaterRequest struct {
	FriendIDs []string `json:"friend_ids" validate:"required,gt=0,dive,required"`
}

type MediaSourceRequest

type MediaSourceRequest struct {
	SourceID string `validate:"required"`
}

type NewMediaSourceRequest

type NewMediaSourceRequest struct {
	Source string `validate:"required,media_source_uri"`
}

type OauthCallbackRequest

type OauthCallbackRequest struct {
	Code string `validate:"required" form:"code"`
}

type SearchUserRequest

type SearchUserRequest struct {
	Keyword string `validate:"required" form:"keyword"`
}

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	Password                string `validate:"required" form:"password"`
	NewPassword             string `validate:"required" form:"new_password"`
	NewPasswordConfirmation string `validate:"required" form:"new_password_confirmation"`
}

type UpdateTheaterRequest

type UpdateTheaterRequest struct {
	Description       string                    `validate:"required_without_all=Privacy VideoPlayerAccess"`
	Privacy           proto.PRIVACY             `validate:"required_without_all=Description VideoPlayerAccess"`
	VideoPlayerAccess proto.VIDEO_PLAYER_ACCESS `validate:"required_without_all=Description Privacy"`
}

Jump to

Keyboard shortcuts

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