Documentation ¶
Index ¶
- func RegisterSources(server *otohttp.Server, sources Sources)
- type AddChannelRequest
- type AddPlaylistRequest
- type AddVideoRequest
- type Channel
- type Collaborator
- type DeleteProject
- type GetProject
- type GetProjectByName
- type GetProjectIDsForChannelRequest
- type GetProjectIDsForChannelResponse
- type GetProjectIDsForPlaylistRequest
- type GetProjectIDsForPlaylistResponse
- type GetProjectIDsForVideoRequest
- type GetProjectIDsForVideoResponse
- type IsProjectEmptyRequest
- type IsProjectEmptyResponse
- type ListChannelIDsRequest
- type ListChannelIDsResponse
- type ListChannelsRequest
- type ListChannelsResponse
- type ListPlaylistIDsRequest
- type ListPlaylistIDsResponse
- type ListPlaylistsRequest
- type ListPlaylistsResponse
- type ListProjectsRequest
- type ListProjectsResponse
- type ListVideoIDsRequest
- type ListVideoIDsResponse
- type ListVideosRequest
- type ListVideosResponse
- type Playlist
- type Project
- type RemoveChannelRequest
- type RemovePlaylistRequest
- type RemoveVideoRequest
- type Sources
- type SourcesClientOptions
- type Video
- type Void
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSources ¶
Types ¶
type AddChannelRequest ¶
type AddPlaylistRequest ¶
type AddVideoRequest ¶
type Collaborator ¶
type DeleteProject ¶
type GetProject ¶
type GetProject struct {
ID string `json:"id"`
}
type GetProjectByName ¶
type GetProjectByName struct {
Name string `json:"name"`
}
type GetProjectIDsForChannelRequest ¶
type GetProjectIDsForChannelRequest struct {
ChannelID string `json:"channelID"`
}
type GetProjectIDsForPlaylistRequest ¶
type GetProjectIDsForPlaylistRequest struct {
PlaylistID string `json:"playlistID"`
}
type GetProjectIDsForVideoRequest ¶
type GetProjectIDsForVideoRequest struct {
VideoID string `json:"videoID"`
}
type IsProjectEmptyRequest ¶
type IsProjectEmptyRequest struct {
ProjectID string `json:"projectID"`
}
type IsProjectEmptyResponse ¶
type ListChannelIDsRequest ¶
type ListChannelIDsResponse ¶
type ListChannelsRequest ¶
type ListChannelsRequest struct {
ProjectID string `json:"projectID"`
}
type ListChannelsResponse ¶
type ListPlaylistIDsRequest ¶
type ListPlaylistIDsResponse ¶
type ListPlaylistsRequest ¶
type ListPlaylistsRequest struct {
ProjectID string `json:"projectID"`
}
type ListPlaylistsResponse ¶
type ListProjectsRequest ¶
type ListProjectsResponse ¶
type ListVideoIDsRequest ¶
type ListVideoIDsResponse ¶
type ListVideosRequest ¶
type ListVideosRequest struct {
ProjectID string `json:"projectID"`
}
type ListVideosResponse ¶
type RemoveChannelRequest ¶
type RemovePlaylistRequest ¶
type RemoveVideoRequest ¶
type Sources ¶
type Sources interface { AddChannel(context.Context, AddChannelRequest) (*Channel, error) AddPlaylist(context.Context, AddPlaylistRequest) (*Playlist, error) AddVideo(context.Context, AddVideoRequest) (*Video, error) CreateProject(context.Context, Project) (*Project, error) DeleteProject(context.Context, DeleteProject) (*Void, error) GetProject(context.Context, GetProject) (*Project, error) GetProjectByName(context.Context, GetProjectByName) (*Project, error) GetProjectIDsForChannel(context.Context, GetProjectIDsForChannelRequest) (*GetProjectIDsForChannelResponse, error) GetProjectIDsForPlaylist(context.Context, GetProjectIDsForPlaylistRequest) (*GetProjectIDsForPlaylistResponse, error) GetProjectIDsForVideo(context.Context, GetProjectIDsForVideoRequest) (*GetProjectIDsForVideoResponse, error) IsProjectEmpty(context.Context, IsProjectEmptyRequest) (*IsProjectEmptyResponse, error) ListChannelIDs(context.Context, ListChannelIDsRequest) (*ListChannelIDsResponse, error) ListChannels(context.Context, ListChannelsRequest) (*ListChannelsResponse, error) ListPlaylistIDs(context.Context, ListPlaylistIDsRequest) (*ListPlaylistIDsResponse, error) ListPlaylists(context.Context, ListPlaylistsRequest) (*ListPlaylistsResponse, error) ListProjects(context.Context, ListProjectsRequest) (*ListProjectsResponse, error) ListVideoIDs(context.Context, ListVideoIDsRequest) (*ListVideoIDsResponse, error) ListVideos(context.Context, ListVideosRequest) (*ListVideosResponse, error) RemoveChannel(context.Context, RemoveChannelRequest) (*Void, error) RemovePlaylist(context.Context, RemovePlaylistRequest) (*Void, error) RemoveVideo(context.Context, RemoveVideoRequest) (*Void, error) }
func NewSourcesClient ¶
func NewSourcesClient( endpoint string, options ...*SourcesClientOptions, ) Sources
func NewSourcesClientFromOptions ¶
func NewSourcesClientFromOptions(opts base.ServiceOptions) Sources
type SourcesClientOptions ¶
type SourcesClientOptions struct {
// contains filtered or unexported fields
}
func NewSourcesClientOptions ¶
func NewSourcesClientOptions() *SourcesClientOptions
func (*SourcesClientOptions) SetBasicAuth ¶
func (o *SourcesClientOptions) SetBasicAuth(username, password string) *SourcesClientOptions
func (*SourcesClientOptions) SetTimeout ¶
func (o *SourcesClientOptions) SetTimeout(timeout time.Duration) *SourcesClientOptions
func (*SourcesClientOptions) SetTransport ¶
func (o *SourcesClientOptions) SetTransport(transport http.RoundTripper) *SourcesClientOptions
Click to show internal directories.
Click to hide internal directories.