Documentation ¶
Overview ¶
Package youtubedl is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterYoutubeDLHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterYoutubeDLHandlerClient(ctx context.Context, mux *runtime.ServeMux, client YoutubeDLClient) error
- func RegisterYoutubeDLHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterYoutubeDLServer(s *grpc.Server, srv YoutubeDLServer)
- type AllDownloads
- func (*AllDownloads) Descriptor() ([]byte, []int)
- func (m *AllDownloads) GetDownloads() []*Download
- func (*AllDownloads) ProtoMessage()
- func (m *AllDownloads) Reset()
- func (m *AllDownloads) String() string
- func (m *AllDownloads) XXX_DiscardUnknown()
- func (m *AllDownloads) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllDownloads) XXX_Merge(src proto.Message)
- func (m *AllDownloads) XXX_Size() int
- func (m *AllDownloads) XXX_Unmarshal(b []byte) error
- type AllDownloadsRequest
- func (*AllDownloadsRequest) Descriptor() ([]byte, []int)
- func (*AllDownloadsRequest) ProtoMessage()
- func (m *AllDownloadsRequest) Reset()
- func (m *AllDownloadsRequest) String() string
- func (m *AllDownloadsRequest) XXX_DiscardUnknown()
- func (m *AllDownloadsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllDownloadsRequest) XXX_Merge(src proto.Message)
- func (m *AllDownloadsRequest) XXX_Size() int
- func (m *AllDownloadsRequest) XXX_Unmarshal(b []byte) error
- type Download
- func (*Download) Descriptor() ([]byte, []int)
- func (m *Download) GetState() *Download_DownloadState
- func (m *Download) GetTitle() string
- func (m *Download) GetUrl() string
- func (*Download) ProtoMessage()
- func (m *Download) Reset()
- func (m *Download) String() string
- func (m *Download) XXX_DiscardUnknown()
- func (m *Download) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Download) XXX_Merge(src proto.Message)
- func (m *Download) XXX_Size() int
- func (m *Download) XXX_Unmarshal(b []byte) error
- type DownloadID
- func (*DownloadID) Descriptor() ([]byte, []int)
- func (m *DownloadID) GetId() string
- func (*DownloadID) ProtoMessage()
- func (m *DownloadID) Reset()
- func (m *DownloadID) String() string
- func (m *DownloadID) XXX_DiscardUnknown()
- func (m *DownloadID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DownloadID) XXX_Merge(src proto.Message)
- func (m *DownloadID) XXX_Size() int
- func (m *DownloadID) XXX_Unmarshal(b []byte) error
- type DownloadItem
- func (*DownloadItem) Descriptor() ([]byte, []int)
- func (m *DownloadItem) GetUrl() string
- func (*DownloadItem) ProtoMessage()
- func (m *DownloadItem) Reset()
- func (m *DownloadItem) String() string
- func (m *DownloadItem) XXX_DiscardUnknown()
- func (m *DownloadItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DownloadItem) XXX_Merge(src proto.Message)
- func (m *DownloadItem) XXX_Size() int
- func (m *DownloadItem) XXX_Unmarshal(b []byte) error
- type DownloadItemResponse
- func (*DownloadItemResponse) Descriptor() ([]byte, []int)
- func (m *DownloadItemResponse) GetId() string
- func (*DownloadItemResponse) ProtoMessage()
- func (m *DownloadItemResponse) Reset()
- func (m *DownloadItemResponse) String() string
- func (m *DownloadItemResponse) XXX_DiscardUnknown()
- func (m *DownloadItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DownloadItemResponse) XXX_Merge(src proto.Message)
- func (m *DownloadItemResponse) XXX_Size() int
- func (m *DownloadItemResponse) XXX_Unmarshal(b []byte) error
- type DownloadRemoveResponse
- func (*DownloadRemoveResponse) Descriptor() ([]byte, []int)
- func (m *DownloadRemoveResponse) GetMessage() string
- func (*DownloadRemoveResponse) ProtoMessage()
- func (m *DownloadRemoveResponse) Reset()
- func (m *DownloadRemoveResponse) String() string
- func (m *DownloadRemoveResponse) XXX_DiscardUnknown()
- func (m *DownloadRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DownloadRemoveResponse) XXX_Merge(src proto.Message)
- func (m *DownloadRemoveResponse) XXX_Size() int
- func (m *DownloadRemoveResponse) XXX_Unmarshal(b []byte) error
- type Download_DownloadState
- func (*Download_DownloadState) Descriptor() ([]byte, []int)
- func (m *Download_DownloadState) GetEtaStr() string
- func (m *Download_DownloadState) GetFilename() string
- func (m *Download_DownloadState) GetPercentStr() string
- func (m *Download_DownloadState) GetSpeedStr() string
- func (m *Download_DownloadState) GetStatus() string
- func (m *Download_DownloadState) GetTotalBytesStr() string
- func (*Download_DownloadState) ProtoMessage()
- func (m *Download_DownloadState) Reset()
- func (m *Download_DownloadState) String() string
- func (m *Download_DownloadState) XXX_DiscardUnknown()
- func (m *Download_DownloadState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Download_DownloadState) XXX_Merge(src proto.Message)
- func (m *Download_DownloadState) XXX_Size() int
- func (m *Download_DownloadState) XXX_Unmarshal(b []byte) error
- type PingReply
- func (*PingReply) Descriptor() ([]byte, []int)
- func (m *PingReply) GetMessage() string
- func (*PingReply) ProtoMessage()
- func (m *PingReply) Reset()
- func (m *PingReply) String() string
- func (m *PingReply) XXX_DiscardUnknown()
- func (m *PingReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingReply) XXX_Merge(src proto.Message)
- func (m *PingReply) XXX_Size() int
- func (m *PingReply) XXX_Unmarshal(b []byte) error
- type PingRequest
- func (*PingRequest) Descriptor() ([]byte, []int)
- func (m *PingRequest) GetMessage() string
- func (*PingRequest) ProtoMessage()
- func (m *PingRequest) Reset()
- func (m *PingRequest) String() string
- func (m *PingRequest) XXX_DiscardUnknown()
- func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingRequest) XXX_Merge(src proto.Message)
- func (m *PingRequest) XXX_Size() int
- func (m *PingRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedYoutubeDLServer
- func (*UnimplementedYoutubeDLServer) AddToQueue(ctx context.Context, req *DownloadItem) (*DownloadItemResponse, error)
- func (*UnimplementedYoutubeDLServer) GetAllDownloads(ctx context.Context, req *AllDownloadsRequest) (*AllDownloads, error)
- func (*UnimplementedYoutubeDLServer) Ping(ctx context.Context, req *PingRequest) (*PingReply, error)
- func (*UnimplementedYoutubeDLServer) RemoveFromQueue(ctx context.Context, req *DownloadID) (*DownloadRemoveResponse, error)
- type YoutubeDLClient
- type YoutubeDLServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterYoutubeDLHandler ¶
func RegisterYoutubeDLHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterYoutubeDLHandler registers the http handlers for service YoutubeDL to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterYoutubeDLHandlerClient ¶
func RegisterYoutubeDLHandlerClient(ctx context.Context, mux *runtime.ServeMux, client YoutubeDLClient) error
RegisterYoutubeDLHandlerClient registers the http handlers for service YoutubeDL to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "YoutubeDLClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "YoutubeDLClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "YoutubeDLClient" to call the correct interceptors.
func RegisterYoutubeDLHandlerFromEndpoint ¶
func RegisterYoutubeDLHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterYoutubeDLHandlerFromEndpoint is same as RegisterYoutubeDLHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterYoutubeDLServer ¶
func RegisterYoutubeDLServer(s *grpc.Server, srv YoutubeDLServer)
Types ¶
type AllDownloads ¶
type AllDownloads struct { Downloads []*Download `protobuf:"bytes,1,rep,name=downloads,proto3" json:"downloads,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AllDownloads) Descriptor ¶
func (*AllDownloads) Descriptor() ([]byte, []int)
func (*AllDownloads) GetDownloads ¶
func (m *AllDownloads) GetDownloads() []*Download
func (*AllDownloads) ProtoMessage ¶
func (*AllDownloads) ProtoMessage()
func (*AllDownloads) Reset ¶
func (m *AllDownloads) Reset()
func (*AllDownloads) String ¶
func (m *AllDownloads) String() string
func (*AllDownloads) XXX_DiscardUnknown ¶
func (m *AllDownloads) XXX_DiscardUnknown()
func (*AllDownloads) XXX_Marshal ¶
func (m *AllDownloads) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllDownloads) XXX_Merge ¶
func (m *AllDownloads) XXX_Merge(src proto.Message)
func (*AllDownloads) XXX_Size ¶
func (m *AllDownloads) XXX_Size() int
func (*AllDownloads) XXX_Unmarshal ¶
func (m *AllDownloads) XXX_Unmarshal(b []byte) error
type AllDownloadsRequest ¶
type AllDownloadsRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AllDownloadsRequest) Descriptor ¶
func (*AllDownloadsRequest) Descriptor() ([]byte, []int)
func (*AllDownloadsRequest) ProtoMessage ¶
func (*AllDownloadsRequest) ProtoMessage()
func (*AllDownloadsRequest) Reset ¶
func (m *AllDownloadsRequest) Reset()
func (*AllDownloadsRequest) String ¶
func (m *AllDownloadsRequest) String() string
func (*AllDownloadsRequest) XXX_DiscardUnknown ¶
func (m *AllDownloadsRequest) XXX_DiscardUnknown()
func (*AllDownloadsRequest) XXX_Marshal ¶
func (m *AllDownloadsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllDownloadsRequest) XXX_Merge ¶
func (m *AllDownloadsRequest) XXX_Merge(src proto.Message)
func (*AllDownloadsRequest) XXX_Size ¶
func (m *AllDownloadsRequest) XXX_Size() int
func (*AllDownloadsRequest) XXX_Unmarshal ¶
func (m *AllDownloadsRequest) XXX_Unmarshal(b []byte) error
type Download ¶
type Download struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` State *Download_DownloadState `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Download) Descriptor ¶
func (*Download) GetState ¶
func (m *Download) GetState() *Download_DownloadState
func (*Download) ProtoMessage ¶
func (*Download) ProtoMessage()
func (*Download) XXX_DiscardUnknown ¶
func (m *Download) XXX_DiscardUnknown()
func (*Download) XXX_Marshal ¶
func (*Download) XXX_Unmarshal ¶
type DownloadID ¶
type DownloadID struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DownloadID) Descriptor ¶
func (*DownloadID) Descriptor() ([]byte, []int)
func (*DownloadID) GetId ¶
func (m *DownloadID) GetId() string
func (*DownloadID) ProtoMessage ¶
func (*DownloadID) ProtoMessage()
func (*DownloadID) Reset ¶
func (m *DownloadID) Reset()
func (*DownloadID) String ¶
func (m *DownloadID) String() string
func (*DownloadID) XXX_DiscardUnknown ¶
func (m *DownloadID) XXX_DiscardUnknown()
func (*DownloadID) XXX_Marshal ¶
func (m *DownloadID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DownloadID) XXX_Merge ¶
func (m *DownloadID) XXX_Merge(src proto.Message)
func (*DownloadID) XXX_Size ¶
func (m *DownloadID) XXX_Size() int
func (*DownloadID) XXX_Unmarshal ¶
func (m *DownloadID) XXX_Unmarshal(b []byte) error
type DownloadItem ¶
type DownloadItem struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DownloadItem) Descriptor ¶
func (*DownloadItem) Descriptor() ([]byte, []int)
func (*DownloadItem) GetUrl ¶
func (m *DownloadItem) GetUrl() string
func (*DownloadItem) ProtoMessage ¶
func (*DownloadItem) ProtoMessage()
func (*DownloadItem) Reset ¶
func (m *DownloadItem) Reset()
func (*DownloadItem) String ¶
func (m *DownloadItem) String() string
func (*DownloadItem) XXX_DiscardUnknown ¶
func (m *DownloadItem) XXX_DiscardUnknown()
func (*DownloadItem) XXX_Marshal ¶
func (m *DownloadItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DownloadItem) XXX_Merge ¶
func (m *DownloadItem) XXX_Merge(src proto.Message)
func (*DownloadItem) XXX_Size ¶
func (m *DownloadItem) XXX_Size() int
func (*DownloadItem) XXX_Unmarshal ¶
func (m *DownloadItem) XXX_Unmarshal(b []byte) error
type DownloadItemResponse ¶
type DownloadItemResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DownloadItemResponse) Descriptor ¶
func (*DownloadItemResponse) Descriptor() ([]byte, []int)
func (*DownloadItemResponse) GetId ¶
func (m *DownloadItemResponse) GetId() string
func (*DownloadItemResponse) ProtoMessage ¶
func (*DownloadItemResponse) ProtoMessage()
func (*DownloadItemResponse) Reset ¶
func (m *DownloadItemResponse) Reset()
func (*DownloadItemResponse) String ¶
func (m *DownloadItemResponse) String() string
func (*DownloadItemResponse) XXX_DiscardUnknown ¶
func (m *DownloadItemResponse) XXX_DiscardUnknown()
func (*DownloadItemResponse) XXX_Marshal ¶
func (m *DownloadItemResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DownloadItemResponse) XXX_Merge ¶
func (m *DownloadItemResponse) XXX_Merge(src proto.Message)
func (*DownloadItemResponse) XXX_Size ¶
func (m *DownloadItemResponse) XXX_Size() int
func (*DownloadItemResponse) XXX_Unmarshal ¶
func (m *DownloadItemResponse) XXX_Unmarshal(b []byte) error
type DownloadRemoveResponse ¶
type DownloadRemoveResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DownloadRemoveResponse) Descriptor ¶
func (*DownloadRemoveResponse) Descriptor() ([]byte, []int)
func (*DownloadRemoveResponse) GetMessage ¶
func (m *DownloadRemoveResponse) GetMessage() string
func (*DownloadRemoveResponse) ProtoMessage ¶
func (*DownloadRemoveResponse) ProtoMessage()
func (*DownloadRemoveResponse) Reset ¶
func (m *DownloadRemoveResponse) Reset()
func (*DownloadRemoveResponse) String ¶
func (m *DownloadRemoveResponse) String() string
func (*DownloadRemoveResponse) XXX_DiscardUnknown ¶
func (m *DownloadRemoveResponse) XXX_DiscardUnknown()
func (*DownloadRemoveResponse) XXX_Marshal ¶
func (m *DownloadRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DownloadRemoveResponse) XXX_Merge ¶
func (m *DownloadRemoveResponse) XXX_Merge(src proto.Message)
func (*DownloadRemoveResponse) XXX_Size ¶
func (m *DownloadRemoveResponse) XXX_Size() int
func (*DownloadRemoveResponse) XXX_Unmarshal ¶
func (m *DownloadRemoveResponse) XXX_Unmarshal(b []byte) error
type Download_DownloadState ¶
type Download_DownloadState struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"` EtaStr string `protobuf:"bytes,3,opt,name=eta_str,json=etaStr,proto3" json:"eta_str,omitempty"` PercentStr string `protobuf:"bytes,4,opt,name=percent_str,json=percentStr,proto3" json:"percent_str,omitempty"` SpeedStr string `protobuf:"bytes,5,opt,name=speed_str,json=speedStr,proto3" json:"speed_str,omitempty"` TotalBytesStr string `protobuf:"bytes,6,opt,name=total_bytes_str,json=totalBytesStr,proto3" json:"total_bytes_str,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Download_DownloadState) Descriptor ¶
func (*Download_DownloadState) Descriptor() ([]byte, []int)
func (*Download_DownloadState) GetEtaStr ¶
func (m *Download_DownloadState) GetEtaStr() string
func (*Download_DownloadState) GetFilename ¶
func (m *Download_DownloadState) GetFilename() string
func (*Download_DownloadState) GetPercentStr ¶
func (m *Download_DownloadState) GetPercentStr() string
func (*Download_DownloadState) GetSpeedStr ¶
func (m *Download_DownloadState) GetSpeedStr() string
func (*Download_DownloadState) GetStatus ¶
func (m *Download_DownloadState) GetStatus() string
func (*Download_DownloadState) GetTotalBytesStr ¶
func (m *Download_DownloadState) GetTotalBytesStr() string
func (*Download_DownloadState) ProtoMessage ¶
func (*Download_DownloadState) ProtoMessage()
func (*Download_DownloadState) Reset ¶
func (m *Download_DownloadState) Reset()
func (*Download_DownloadState) String ¶
func (m *Download_DownloadState) String() string
func (*Download_DownloadState) XXX_DiscardUnknown ¶
func (m *Download_DownloadState) XXX_DiscardUnknown()
func (*Download_DownloadState) XXX_Marshal ¶
func (m *Download_DownloadState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Download_DownloadState) XXX_Merge ¶
func (m *Download_DownloadState) XXX_Merge(src proto.Message)
func (*Download_DownloadState) XXX_Size ¶
func (m *Download_DownloadState) XXX_Size() int
func (*Download_DownloadState) XXX_Unmarshal ¶
func (m *Download_DownloadState) XXX_Unmarshal(b []byte) error
type PingReply ¶
type PingReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingReply) Descriptor ¶
func (*PingReply) GetMessage ¶
func (*PingReply) ProtoMessage ¶
func (*PingReply) ProtoMessage()
func (*PingReply) XXX_DiscardUnknown ¶
func (m *PingReply) XXX_DiscardUnknown()
func (*PingReply) XXX_Marshal ¶
func (*PingReply) XXX_Unmarshal ¶
type PingRequest ¶
type PingRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingRequest) Descriptor ¶
func (*PingRequest) Descriptor() ([]byte, []int)
func (*PingRequest) GetMessage ¶
func (m *PingRequest) GetMessage() string
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) Reset ¶
func (m *PingRequest) Reset()
func (*PingRequest) String ¶
func (m *PingRequest) String() string
func (*PingRequest) XXX_DiscardUnknown ¶
func (m *PingRequest) XXX_DiscardUnknown()
func (*PingRequest) XXX_Marshal ¶
func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PingRequest) XXX_Merge ¶
func (m *PingRequest) XXX_Merge(src proto.Message)
func (*PingRequest) XXX_Size ¶
func (m *PingRequest) XXX_Size() int
func (*PingRequest) XXX_Unmarshal ¶
func (m *PingRequest) XXX_Unmarshal(b []byte) error
type UnimplementedYoutubeDLServer ¶
type UnimplementedYoutubeDLServer struct { }
UnimplementedYoutubeDLServer can be embedded to have forward compatible implementations.
func (*UnimplementedYoutubeDLServer) AddToQueue ¶
func (*UnimplementedYoutubeDLServer) AddToQueue(ctx context.Context, req *DownloadItem) (*DownloadItemResponse, error)
func (*UnimplementedYoutubeDLServer) GetAllDownloads ¶
func (*UnimplementedYoutubeDLServer) GetAllDownloads(ctx context.Context, req *AllDownloadsRequest) (*AllDownloads, error)
func (*UnimplementedYoutubeDLServer) Ping ¶
func (*UnimplementedYoutubeDLServer) Ping(ctx context.Context, req *PingRequest) (*PingReply, error)
func (*UnimplementedYoutubeDLServer) RemoveFromQueue ¶
func (*UnimplementedYoutubeDLServer) RemoveFromQueue(ctx context.Context, req *DownloadID) (*DownloadRemoveResponse, error)
type YoutubeDLClient ¶
type YoutubeDLClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingReply, error) AddToQueue(ctx context.Context, in *DownloadItem, opts ...grpc.CallOption) (*DownloadItemResponse, error) RemoveFromQueue(ctx context.Context, in *DownloadID, opts ...grpc.CallOption) (*DownloadRemoveResponse, error) GetAllDownloads(ctx context.Context, in *AllDownloadsRequest, opts ...grpc.CallOption) (*AllDownloads, error) }
YoutubeDLClient is the client API for YoutubeDL service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewYoutubeDLClient ¶
func NewYoutubeDLClient(cc *grpc.ClientConn) YoutubeDLClient
type YoutubeDLServer ¶
type YoutubeDLServer interface { Ping(context.Context, *PingRequest) (*PingReply, error) AddToQueue(context.Context, *DownloadItem) (*DownloadItemResponse, error) RemoveFromQueue(context.Context, *DownloadID) (*DownloadRemoveResponse, error) GetAllDownloads(context.Context, *AllDownloadsRequest) (*AllDownloads, error) }
YoutubeDLServer is the server API for YoutubeDL service.