server

package
v0.0.0-...-1b9946f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entry

func Entry(
	port int,
	iam iam.IAM,
	store store.Store,
	seer seer.Seer,
	compiler compiler.Compiler,
	log *zap.Logger,
) error

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	iam iam.IAM,
	store store.Store,
	seer seer.Seer,
	compiler compiler.Compiler,
	log *zap.Logger,
) *Server

func (*Server) AddChannel

func (s *Server) AddChannel(ctx context.Context, req api.AddChannelRequest) (*api.Channel, error)

func (*Server) AddPlaylist

func (s *Server) AddPlaylist(ctx context.Context, req api.AddPlaylistRequest) (*api.Playlist, error)

func (*Server) AddVideo

func (s *Server) AddVideo(ctx context.Context, req api.AddVideoRequest) (*api.Video, error)

func (*Server) CreateProject

func (s *Server) CreateProject(ctx context.Context, project api.Project) (*api.Project, error)

func (*Server) DeleteProject

func (s *Server) DeleteProject(ctx context.Context, req api.DeleteProject) (*api.Void, error)

func (*Server) GetProject

func (s *Server) GetProject(ctx context.Context, req api.GetProject) (*api.Project, error)

func (*Server) GetProjectByName

func (s *Server) GetProjectByName(ctx context.Context, req api.GetProjectByName) (*api.Project, error)

func (*Server) GetProjectIDsForVideo

func (*Server) IsProjectEmpty

func (s *Server) IsProjectEmpty(
	ctx context.Context,
	req api.IsProjectEmptyRequest,
) (*api.IsProjectEmptyResponse, error)

func (*Server) ListChannelIDs

func (*Server) ListChannels

func (*Server) ListPlaylistIDs

func (*Server) ListPlaylists

func (*Server) ListProjects

func (s *Server) ListProjects(
	ctx context.Context,
	req api.ListProjectsRequest,
) (*api.ListProjectsResponse, error)

func (*Server) ListVideoIDs

func (*Server) ListVideos

func (s *Server) ListVideos(ctx context.Context, req api.ListVideosRequest) (*api.ListVideosResponse, error)

func (*Server) ListVisibleProjects

func (s *Server) ListVisibleProjects(
	ctx context.Context,
	userID string,
) ([]*api.Project, error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(port int) error

func (*Server) RemoveChannel

func (s *Server) RemoveChannel(ctx context.Context, req api.RemoveChannelRequest) (*api.Void, error)

func (*Server) RemovePlaylist

func (s *Server) RemovePlaylist(ctx context.Context, req api.RemovePlaylistRequest) (*api.Void, error)

func (*Server) RemoveVideo

func (s *Server) RemoveVideo(ctx context.Context, req api.RemoveVideoRequest) (*api.Void, error)

Jump to

Keyboard shortcuts

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