Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterQBitTorrentServiceServer(s grpc.ServiceRegistrar, srv QBitTorrentServiceServer)
- type CleanupRequest
- func (x *CleanupRequest) ClearAct()
- func (x *CleanupRequest) GetAct() bool
- func (x *CleanupRequest) HasAct() bool
- func (*CleanupRequest) ProtoMessage()
- func (x *CleanupRequest) ProtoReflect() protoreflect.Message
- func (x *CleanupRequest) Reset()
- func (x *CleanupRequest) SetAct(v bool)
- func (x *CleanupRequest) String() string
- type CleanupRequest_builder
- type CleanupResponse
- func (x *CleanupResponse) ClearCount()
- func (x *CleanupResponse) GetCount() int32
- func (x *CleanupResponse) GetHashes() []string
- func (x *CleanupResponse) HasCount() bool
- func (*CleanupResponse) ProtoMessage()
- func (x *CleanupResponse) ProtoReflect() protoreflect.Message
- func (x *CleanupResponse) Reset()
- func (x *CleanupResponse) SetCount(v int32)
- func (x *CleanupResponse) SetHashes(v []string)
- func (x *CleanupResponse) String() string
- type CleanupResponse_builder
- type CleanupUnregistredRequest
- func (x *CleanupUnregistredRequest) ClearAct()
- func (x *CleanupUnregistredRequest) GetAct() bool
- func (x *CleanupUnregistredRequest) HasAct() bool
- func (*CleanupUnregistredRequest) ProtoMessage()
- func (x *CleanupUnregistredRequest) ProtoReflect() protoreflect.Message
- func (x *CleanupUnregistredRequest) Reset()
- func (x *CleanupUnregistredRequest) SetAct(v bool)
- func (x *CleanupUnregistredRequest) String() string
- type CleanupUnregistredRequest_builder
- type CleanupUnregistredResponse
- func (x *CleanupUnregistredResponse) ClearCount()
- func (x *CleanupUnregistredResponse) GetCount() int32
- func (x *CleanupUnregistredResponse) GetHashes() []string
- func (x *CleanupUnregistredResponse) HasCount() bool
- func (*CleanupUnregistredResponse) ProtoMessage()
- func (x *CleanupUnregistredResponse) ProtoReflect() protoreflect.Message
- func (x *CleanupUnregistredResponse) Reset()
- func (x *CleanupUnregistredResponse) SetCount(v int32)
- func (x *CleanupUnregistredResponse) SetHashes(v []string)
- func (x *CleanupUnregistredResponse) String() string
- type CleanupUnregistredResponse_builder
- type GetTorrentsRequest
- func (x *GetTorrentsRequest) ClearSourcesCount()
- func (x *GetTorrentsRequest) GetSourcesCount() *filters.IntFilter
- func (x *GetTorrentsRequest) HasSourcesCount() bool
- func (*GetTorrentsRequest) ProtoMessage()
- func (x *GetTorrentsRequest) ProtoReflect() protoreflect.Message
- func (x *GetTorrentsRequest) Reset()
- func (x *GetTorrentsRequest) SetSourcesCount(v *filters.IntFilter)
- func (x *GetTorrentsRequest) String() string
- type GetTorrentsRequest_builder
- type GetTorrentsResponse
- func (x *GetTorrentsResponse) GetTorrents() []*Torrent
- func (*GetTorrentsResponse) ProtoMessage()
- func (x *GetTorrentsResponse) ProtoReflect() protoreflect.Message
- func (x *GetTorrentsResponse) Reset()
- func (x *GetTorrentsResponse) SetTorrents(v []*Torrent)
- func (x *GetTorrentsResponse) String() string
- type GetTorrentsResponse_builder
- type QBitTorrentServiceClient
- type QBitTorrentServiceServer
- type Torrent
- func (x *Torrent) ClearHash()
- func (x *Torrent) ClearName()
- func (x *Torrent) GetHash() string
- func (x *Torrent) GetName() string
- func (x *Torrent) GetSourceFiles() []string
- func (x *Torrent) HasHash() bool
- func (x *Torrent) HasName() bool
- func (*Torrent) ProtoMessage()
- func (x *Torrent) ProtoReflect() protoreflect.Message
- func (x *Torrent) Reset()
- func (x *Torrent) SetHash(v string)
- func (x *Torrent) SetName(v string)
- func (x *Torrent) SetSourceFiles(v []string)
- func (x *Torrent) String() string
- type Torrent_builder
- type UnimplementedQBitTorrentServiceServer
- func (UnimplementedQBitTorrentServiceServer) Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error)
- func (UnimplementedQBitTorrentServiceServer) CleanupUnregistred(context.Context, *CleanupUnregistredRequest) (*CleanupUnregistredResponse, error)
- func (UnimplementedQBitTorrentServiceServer) GetTorrents(context.Context, *GetTorrentsRequest) (*GetTorrentsResponse, error)
- type UnsafeQBitTorrentServiceServer
Constants ¶
const ( QBitTorrentService_GetTorrents_FullMethodName = "/tstor.daemons.qbittorrent.QBitTorrentService/GetTorrents" QBitTorrentService_Cleanup_FullMethodName = "/tstor.daemons.qbittorrent.QBitTorrentService/Cleanup" QBitTorrentService_CleanupUnregistred_FullMethodName = "/tstor.daemons.qbittorrent.QBitTorrentService/CleanupUnregistred" )
const (
Default_CleanupRequest_Act = bool(false)
)
Default values for CleanupRequest fields.
const (
Default_CleanupUnregistredRequest_Act = bool(false)
)
Default values for CleanupUnregistredRequest fields.
Variables ¶
var File_proto_qbittorrent_proto protoreflect.FileDescriptor
var QBitTorrentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tstor.daemons.qbittorrent.QBitTorrentService", HandlerType: (*QBitTorrentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTorrents", Handler: _QBitTorrentService_GetTorrents_Handler, }, { MethodName: "Cleanup", Handler: _QBitTorrentService_Cleanup_Handler, }, { MethodName: "CleanupUnregistred", Handler: _QBitTorrentService_CleanupUnregistred_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/qbittorrent.proto", }
QBitTorrentService_ServiceDesc is the grpc.ServiceDesc for QBitTorrentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterQBitTorrentServiceServer ¶
func RegisterQBitTorrentServiceServer(s grpc.ServiceRegistrar, srv QBitTorrentServiceServer)
Types ¶
type CleanupRequest ¶
type CleanupRequest struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
func (*CleanupRequest) ClearAct ¶
func (x *CleanupRequest) ClearAct()
func (*CleanupRequest) GetAct ¶
func (x *CleanupRequest) GetAct() bool
func (*CleanupRequest) HasAct ¶
func (x *CleanupRequest) HasAct() bool
func (*CleanupRequest) ProtoMessage ¶
func (*CleanupRequest) ProtoMessage()
func (*CleanupRequest) ProtoReflect ¶
func (x *CleanupRequest) ProtoReflect() protoreflect.Message
func (*CleanupRequest) Reset ¶
func (x *CleanupRequest) Reset()
func (*CleanupRequest) SetAct ¶
func (x *CleanupRequest) SetAct(v bool)
func (*CleanupRequest) String ¶
func (x *CleanupRequest) String() string
type CleanupRequest_builder ¶
type CleanupRequest_builder struct {
Act *bool
// contains filtered or unexported fields
}
func (CleanupRequest_builder) Build ¶
func (b0 CleanupRequest_builder) Build() *CleanupRequest
type CleanupResponse ¶
type CleanupResponse struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
func (*CleanupResponse) ClearCount ¶
func (x *CleanupResponse) ClearCount()
func (*CleanupResponse) GetCount ¶
func (x *CleanupResponse) GetCount() int32
func (*CleanupResponse) GetHashes ¶
func (x *CleanupResponse) GetHashes() []string
func (*CleanupResponse) HasCount ¶
func (x *CleanupResponse) HasCount() bool
func (*CleanupResponse) ProtoMessage ¶
func (*CleanupResponse) ProtoMessage()
func (*CleanupResponse) ProtoReflect ¶
func (x *CleanupResponse) ProtoReflect() protoreflect.Message
func (*CleanupResponse) Reset ¶
func (x *CleanupResponse) Reset()
func (*CleanupResponse) SetCount ¶
func (x *CleanupResponse) SetCount(v int32)
func (*CleanupResponse) SetHashes ¶
func (x *CleanupResponse) SetHashes(v []string)
func (*CleanupResponse) String ¶
func (x *CleanupResponse) String() string
type CleanupResponse_builder ¶
type CleanupResponse_builder struct {
Count *int32
Hashes []string
// contains filtered or unexported fields
}
func (CleanupResponse_builder) Build ¶
func (b0 CleanupResponse_builder) Build() *CleanupResponse
type CleanupUnregistredRequest ¶
type CleanupUnregistredRequest struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
func (*CleanupUnregistredRequest) ClearAct ¶
func (x *CleanupUnregistredRequest) ClearAct()
func (*CleanupUnregistredRequest) GetAct ¶
func (x *CleanupUnregistredRequest) GetAct() bool
func (*CleanupUnregistredRequest) HasAct ¶
func (x *CleanupUnregistredRequest) HasAct() bool
func (*CleanupUnregistredRequest) ProtoMessage ¶
func (*CleanupUnregistredRequest) ProtoMessage()
func (*CleanupUnregistredRequest) ProtoReflect ¶
func (x *CleanupUnregistredRequest) ProtoReflect() protoreflect.Message
func (*CleanupUnregistredRequest) Reset ¶
func (x *CleanupUnregistredRequest) Reset()
func (*CleanupUnregistredRequest) SetAct ¶
func (x *CleanupUnregistredRequest) SetAct(v bool)
func (*CleanupUnregistredRequest) String ¶
func (x *CleanupUnregistredRequest) String() string
type CleanupUnregistredRequest_builder ¶
type CleanupUnregistredRequest_builder struct {
Act *bool
// contains filtered or unexported fields
}
func (CleanupUnregistredRequest_builder) Build ¶
func (b0 CleanupUnregistredRequest_builder) Build() *CleanupUnregistredRequest
type CleanupUnregistredResponse ¶
type CleanupUnregistredResponse struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
func (*CleanupUnregistredResponse) ClearCount ¶
func (x *CleanupUnregistredResponse) ClearCount()
func (*CleanupUnregistredResponse) GetCount ¶
func (x *CleanupUnregistredResponse) GetCount() int32
func (*CleanupUnregistredResponse) GetHashes ¶
func (x *CleanupUnregistredResponse) GetHashes() []string
func (*CleanupUnregistredResponse) HasCount ¶
func (x *CleanupUnregistredResponse) HasCount() bool
func (*CleanupUnregistredResponse) ProtoMessage ¶
func (*CleanupUnregistredResponse) ProtoMessage()
func (*CleanupUnregistredResponse) ProtoReflect ¶
func (x *CleanupUnregistredResponse) ProtoReflect() protoreflect.Message
func (*CleanupUnregistredResponse) Reset ¶
func (x *CleanupUnregistredResponse) Reset()
func (*CleanupUnregistredResponse) SetCount ¶
func (x *CleanupUnregistredResponse) SetCount(v int32)
func (*CleanupUnregistredResponse) SetHashes ¶
func (x *CleanupUnregistredResponse) SetHashes(v []string)
func (*CleanupUnregistredResponse) String ¶
func (x *CleanupUnregistredResponse) String() string
type CleanupUnregistredResponse_builder ¶
type CleanupUnregistredResponse_builder struct {
Count *int32
Hashes []string
// contains filtered or unexported fields
}
func (CleanupUnregistredResponse_builder) Build ¶
func (b0 CleanupUnregistredResponse_builder) Build() *CleanupUnregistredResponse
type GetTorrentsRequest ¶
type GetTorrentsRequest struct {
// contains filtered or unexported fields
}
func (*GetTorrentsRequest) ClearSourcesCount ¶
func (x *GetTorrentsRequest) ClearSourcesCount()
func (*GetTorrentsRequest) GetSourcesCount ¶
func (x *GetTorrentsRequest) GetSourcesCount() *filters.IntFilter
func (*GetTorrentsRequest) HasSourcesCount ¶
func (x *GetTorrentsRequest) HasSourcesCount() bool
func (*GetTorrentsRequest) ProtoMessage ¶
func (*GetTorrentsRequest) ProtoMessage()
func (*GetTorrentsRequest) ProtoReflect ¶
func (x *GetTorrentsRequest) ProtoReflect() protoreflect.Message
func (*GetTorrentsRequest) Reset ¶
func (x *GetTorrentsRequest) Reset()
func (*GetTorrentsRequest) SetSourcesCount ¶
func (x *GetTorrentsRequest) SetSourcesCount(v *filters.IntFilter)
func (*GetTorrentsRequest) String ¶
func (x *GetTorrentsRequest) String() string
type GetTorrentsRequest_builder ¶
type GetTorrentsRequest_builder struct {
SourcesCount *filters.IntFilter
// contains filtered or unexported fields
}
func (GetTorrentsRequest_builder) Build ¶
func (b0 GetTorrentsRequest_builder) Build() *GetTorrentsRequest
type GetTorrentsResponse ¶
type GetTorrentsResponse struct {
// contains filtered or unexported fields
}
func (*GetTorrentsResponse) GetTorrents ¶
func (x *GetTorrentsResponse) GetTorrents() []*Torrent
func (*GetTorrentsResponse) ProtoMessage ¶
func (*GetTorrentsResponse) ProtoMessage()
func (*GetTorrentsResponse) ProtoReflect ¶
func (x *GetTorrentsResponse) ProtoReflect() protoreflect.Message
func (*GetTorrentsResponse) Reset ¶
func (x *GetTorrentsResponse) Reset()
func (*GetTorrentsResponse) SetTorrents ¶
func (x *GetTorrentsResponse) SetTorrents(v []*Torrent)
func (*GetTorrentsResponse) String ¶
func (x *GetTorrentsResponse) String() string
type GetTorrentsResponse_builder ¶
type GetTorrentsResponse_builder struct {
Torrents []*Torrent
// contains filtered or unexported fields
}
func (GetTorrentsResponse_builder) Build ¶
func (b0 GetTorrentsResponse_builder) Build() *GetTorrentsResponse
type QBitTorrentServiceClient ¶
type QBitTorrentServiceClient interface {
GetTorrents(ctx context.Context, in *GetTorrentsRequest, opts ...grpc.CallOption) (*GetTorrentsResponse, error)
Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error)
CleanupUnregistred(ctx context.Context, in *CleanupUnregistredRequest, opts ...grpc.CallOption) (*CleanupUnregistredResponse, error)
}
QBitTorrentServiceClient is the client API for QBitTorrentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQBitTorrentServiceClient ¶
func NewQBitTorrentServiceClient(cc grpc.ClientConnInterface) QBitTorrentServiceClient
type QBitTorrentServiceServer ¶
type QBitTorrentServiceServer interface {
GetTorrents(context.Context, *GetTorrentsRequest) (*GetTorrentsResponse, error)
Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error)
CleanupUnregistred(context.Context, *CleanupUnregistredRequest) (*CleanupUnregistredResponse, error)
}
QBitTorrentServiceServer is the server API for QBitTorrentService service. All implementations should embed UnimplementedQBitTorrentServiceServer for forward compatibility.
type Torrent ¶
type Torrent struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
func (*Torrent) GetSourceFiles ¶
func (*Torrent) ProtoMessage ¶
func (*Torrent) ProtoMessage()
func (*Torrent) ProtoReflect ¶
func (x *Torrent) ProtoReflect() protoreflect.Message
func (*Torrent) SetSourceFiles ¶
type Torrent_builder ¶
type Torrent_builder struct {
Name *string
Hash *string
SourceFiles []string
// contains filtered or unexported fields
}
func (Torrent_builder) Build ¶
func (b0 Torrent_builder) Build() *Torrent
type UnimplementedQBitTorrentServiceServer ¶
type UnimplementedQBitTorrentServiceServer struct{}
UnimplementedQBitTorrentServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedQBitTorrentServiceServer) Cleanup ¶
func (UnimplementedQBitTorrentServiceServer) Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error)
func (UnimplementedQBitTorrentServiceServer) CleanupUnregistred ¶
func (UnimplementedQBitTorrentServiceServer) CleanupUnregistred(context.Context, *CleanupUnregistredRequest) (*CleanupUnregistredResponse, error)
func (UnimplementedQBitTorrentServiceServer) GetTorrents ¶
func (UnimplementedQBitTorrentServiceServer) GetTorrents(context.Context, *GetTorrentsRequest) (*GetTorrentsResponse, error)
type UnsafeQBitTorrentServiceServer ¶
type UnsafeQBitTorrentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeQBitTorrentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QBitTorrentServiceServer will result in compilation errors.