Documentation ¶
Index ¶
- func RegisterTorrentServiceHandler(s server.Server, hdlr TorrentServiceHandler, opts ...server.HandlerOption) error
- type TorrentEmpty
- func (*TorrentEmpty) Descriptor() ([]byte, []int)
- func (*TorrentEmpty) ProtoMessage()
- func (m *TorrentEmpty) Reset()
- func (m *TorrentEmpty) String() string
- func (m *TorrentEmpty) XXX_DiscardUnknown()
- func (m *TorrentEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TorrentEmpty) XXX_Merge(src proto.Message)
- func (m *TorrentEmpty) XXX_Size() int
- func (m *TorrentEmpty) XXX_Unmarshal(b []byte) error
- type TorrentFilesPriority
- func (*TorrentFilesPriority) Descriptor() ([]byte, []int)
- func (m *TorrentFilesPriority) GetFiles() []string
- func (m *TorrentFilesPriority) GetHash() string
- func (m *TorrentFilesPriority) GetPriority() uint64
- func (*TorrentFilesPriority) ProtoMessage()
- func (m *TorrentFilesPriority) Reset()
- func (m *TorrentFilesPriority) String() string
- func (m *TorrentFilesPriority) XXX_DiscardUnknown()
- func (m *TorrentFilesPriority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TorrentFilesPriority) XXX_Merge(src proto.Message)
- func (m *TorrentFilesPriority) XXX_Size() int
- func (m *TorrentFilesPriority) XXX_Unmarshal(b []byte) error
- type TorrentOptions
- func (*TorrentOptions) Descriptor() ([]byte, []int)
- func (m *TorrentOptions) GetOptions() map[string]string
- func (*TorrentOptions) ProtoMessage()
- func (m *TorrentOptions) Reset()
- func (m *TorrentOptions) String() string
- func (m *TorrentOptions) XXX_DiscardUnknown()
- func (m *TorrentOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TorrentOptions) XXX_Merge(src proto.Message)
- func (m *TorrentOptions) XXX_Size() int
- func (m *TorrentOptions) XXX_Unmarshal(b []byte) error
- type TorrentResponse
- func (*TorrentResponse) Descriptor() ([]byte, []int)
- func (m *TorrentResponse) GetResult() []byte
- func (*TorrentResponse) ProtoMessage()
- func (m *TorrentResponse) Reset()
- func (m *TorrentResponse) String() string
- func (m *TorrentResponse) XXX_DiscardUnknown()
- func (m *TorrentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TorrentResponse) XXX_Merge(src proto.Message)
- func (m *TorrentResponse) XXX_Size() int
- func (m *TorrentResponse) XXX_Unmarshal(b []byte) error
- type TorrentService
- type TorrentServiceHandler
- type TorrentString
- func (*TorrentString) Descriptor() ([]byte, []int)
- func (m *TorrentString) GetValue() string
- func (*TorrentString) ProtoMessage()
- func (m *TorrentString) Reset()
- func (m *TorrentString) String() string
- func (m *TorrentString) XXX_DiscardUnknown()
- func (m *TorrentString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TorrentString) XXX_Merge(src proto.Message)
- func (m *TorrentString) XXX_Size() int
- func (m *TorrentString) XXX_Unmarshal(b []byte) error
- type TorrentStrings
- func (*TorrentStrings) Descriptor() ([]byte, []int)
- func (m *TorrentStrings) GetValues() []string
- func (*TorrentStrings) ProtoMessage()
- func (m *TorrentStrings) Reset()
- func (m *TorrentStrings) String() string
- func (m *TorrentStrings) XXX_DiscardUnknown()
- func (m *TorrentStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TorrentStrings) XXX_Merge(src proto.Message)
- func (m *TorrentStrings) XXX_Size() int
- func (m *TorrentStrings) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTorrentServiceHandler ¶
func RegisterTorrentServiceHandler(s server.Server, hdlr TorrentServiceHandler, opts ...server.HandlerOption) error
Types ¶
type TorrentEmpty ¶
type TorrentEmpty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TorrentEmpty) Descriptor ¶
func (*TorrentEmpty) Descriptor() ([]byte, []int)
func (*TorrentEmpty) ProtoMessage ¶
func (*TorrentEmpty) ProtoMessage()
func (*TorrentEmpty) Reset ¶
func (m *TorrentEmpty) Reset()
func (*TorrentEmpty) String ¶
func (m *TorrentEmpty) String() string
func (*TorrentEmpty) XXX_DiscardUnknown ¶
func (m *TorrentEmpty) XXX_DiscardUnknown()
func (*TorrentEmpty) XXX_Marshal ¶
func (m *TorrentEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TorrentEmpty) XXX_Merge ¶
func (m *TorrentEmpty) XXX_Merge(src proto.Message)
func (*TorrentEmpty) XXX_Size ¶
func (m *TorrentEmpty) XXX_Size() int
func (*TorrentEmpty) XXX_Unmarshal ¶
func (m *TorrentEmpty) XXX_Unmarshal(b []byte) error
type TorrentFilesPriority ¶
type TorrentFilesPriority struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Priority uint64 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TorrentFilesPriority) Descriptor ¶
func (*TorrentFilesPriority) Descriptor() ([]byte, []int)
func (*TorrentFilesPriority) GetFiles ¶
func (m *TorrentFilesPriority) GetFiles() []string
func (*TorrentFilesPriority) GetHash ¶
func (m *TorrentFilesPriority) GetHash() string
func (*TorrentFilesPriority) GetPriority ¶
func (m *TorrentFilesPriority) GetPriority() uint64
func (*TorrentFilesPriority) ProtoMessage ¶
func (*TorrentFilesPriority) ProtoMessage()
func (*TorrentFilesPriority) Reset ¶
func (m *TorrentFilesPriority) Reset()
func (*TorrentFilesPriority) String ¶
func (m *TorrentFilesPriority) String() string
func (*TorrentFilesPriority) XXX_DiscardUnknown ¶
func (m *TorrentFilesPriority) XXX_DiscardUnknown()
func (*TorrentFilesPriority) XXX_Marshal ¶
func (m *TorrentFilesPriority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TorrentFilesPriority) XXX_Merge ¶
func (m *TorrentFilesPriority) XXX_Merge(src proto.Message)
func (*TorrentFilesPriority) XXX_Size ¶
func (m *TorrentFilesPriority) XXX_Size() int
func (*TorrentFilesPriority) XXX_Unmarshal ¶
func (m *TorrentFilesPriority) XXX_Unmarshal(b []byte) error
type TorrentOptions ¶
type TorrentOptions struct { Options map[string]string `` /* 155-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TorrentOptions) Descriptor ¶
func (*TorrentOptions) Descriptor() ([]byte, []int)
func (*TorrentOptions) GetOptions ¶
func (m *TorrentOptions) GetOptions() map[string]string
func (*TorrentOptions) ProtoMessage ¶
func (*TorrentOptions) ProtoMessage()
func (*TorrentOptions) Reset ¶
func (m *TorrentOptions) Reset()
func (*TorrentOptions) String ¶
func (m *TorrentOptions) String() string
func (*TorrentOptions) XXX_DiscardUnknown ¶
func (m *TorrentOptions) XXX_DiscardUnknown()
func (*TorrentOptions) XXX_Marshal ¶
func (m *TorrentOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TorrentOptions) XXX_Merge ¶
func (m *TorrentOptions) XXX_Merge(src proto.Message)
func (*TorrentOptions) XXX_Size ¶
func (m *TorrentOptions) XXX_Size() int
func (*TorrentOptions) XXX_Unmarshal ¶
func (m *TorrentOptions) XXX_Unmarshal(b []byte) error
type TorrentResponse ¶
type TorrentResponse struct { Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TorrentResponse) Descriptor ¶
func (*TorrentResponse) Descriptor() ([]byte, []int)
func (*TorrentResponse) GetResult ¶
func (m *TorrentResponse) GetResult() []byte
func (*TorrentResponse) ProtoMessage ¶
func (*TorrentResponse) ProtoMessage()
func (*TorrentResponse) Reset ¶
func (m *TorrentResponse) Reset()
func (*TorrentResponse) String ¶
func (m *TorrentResponse) String() string
func (*TorrentResponse) XXX_DiscardUnknown ¶
func (m *TorrentResponse) XXX_DiscardUnknown()
func (*TorrentResponse) XXX_Marshal ¶
func (m *TorrentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TorrentResponse) XXX_Merge ¶
func (m *TorrentResponse) XXX_Merge(src proto.Message)
func (*TorrentResponse) XXX_Size ¶
func (m *TorrentResponse) XXX_Size() int
func (*TorrentResponse) XXX_Unmarshal ¶
func (m *TorrentResponse) XXX_Unmarshal(b []byte) error
type TorrentService ¶
type TorrentService interface { // Application RPC methods ApplicationVersion(ctx context.Context, in *TorrentEmpty, opts ...client.CallOption) (*TorrentResponse, error) ApplicationAPIVersion(ctx context.Context, in *TorrentEmpty, opts ...client.CallOption) (*TorrentResponse, error) ApplicationBuildInformation(ctx context.Context, in *TorrentEmpty, opts ...client.CallOption) (*TorrentResponse, error) ApplicationPreferences(ctx context.Context, in *TorrentEmpty, opts ...client.CallOption) (*TorrentResponse, error) // Log RPC methods LogEntries(ctx context.Context, in *TorrentOptions, opts ...client.CallOption) (*TorrentResponse, error) // Torrents RPC methods TorrentList(ctx context.Context, in *TorrentEmpty, opts ...client.CallOption) (*TorrentResponse, error) TorrentProperties(ctx context.Context, in *TorrentString, opts ...client.CallOption) (*TorrentResponse, error) TorrentTrackers(ctx context.Context, in *TorrentString, opts ...client.CallOption) (*TorrentResponse, error) TorrentContents(ctx context.Context, in *TorrentString, opts ...client.CallOption) (*TorrentResponse, error) TorrentPiecesState(ctx context.Context, in *TorrentString, opts ...client.CallOption) (*TorrentResponse, error) TorrentPiecesHashes(ctx context.Context, in *TorrentString, opts ...client.CallOption) (*TorrentResponse, error) TorrentPause(ctx context.Context, in *TorrentStrings, opts ...client.CallOption) (*TorrentEmpty, error) TorrentResume(ctx context.Context, in *TorrentStrings, opts ...client.CallOption) (*TorrentEmpty, error) TorrentDelete(ctx context.Context, in *TorrentStrings, opts ...client.CallOption) (*TorrentEmpty, error) TorrentDeleteWithFiles(ctx context.Context, in *TorrentStrings, opts ...client.CallOption) (*TorrentEmpty, error) TorrentReCheck(ctx context.Context, in *TorrentStrings, opts ...client.CallOption) (*TorrentEmpty, error) TorrentReAnnounce(ctx context.Context, in *TorrentStrings, opts ...client.CallOption) (*TorrentEmpty, error) TorrentIncreasePriority(ctx context.Context, in *TorrentStrings, opts ...client.CallOption) (*TorrentEmpty, error) TorrentDecreasePriority(ctx context.Context, in *TorrentStrings, opts ...client.CallOption) (*TorrentEmpty, error) TorrentSetHighestPriority(ctx context.Context, in *TorrentStrings, opts ...client.CallOption) (*TorrentEmpty, error) TorrentSetLowestPriority(ctx context.Context, in *TorrentStrings, opts ...client.CallOption) (*TorrentEmpty, error) TorrentSetFilePriority(ctx context.Context, in *TorrentFilesPriority, opts ...client.CallOption) (*TorrentEmpty, error) }
func NewTorrentService ¶
func NewTorrentService(name string, c client.Client) TorrentService
type TorrentServiceHandler ¶
type TorrentServiceHandler interface { // Application RPC methods ApplicationVersion(context.Context, *TorrentEmpty, *TorrentResponse) error ApplicationAPIVersion(context.Context, *TorrentEmpty, *TorrentResponse) error ApplicationBuildInformation(context.Context, *TorrentEmpty, *TorrentResponse) error ApplicationPreferences(context.Context, *TorrentEmpty, *TorrentResponse) error // Log RPC methods LogEntries(context.Context, *TorrentOptions, *TorrentResponse) error // Torrents RPC methods TorrentList(context.Context, *TorrentEmpty, *TorrentResponse) error TorrentProperties(context.Context, *TorrentString, *TorrentResponse) error TorrentTrackers(context.Context, *TorrentString, *TorrentResponse) error TorrentContents(context.Context, *TorrentString, *TorrentResponse) error TorrentPiecesState(context.Context, *TorrentString, *TorrentResponse) error TorrentPiecesHashes(context.Context, *TorrentString, *TorrentResponse) error TorrentPause(context.Context, *TorrentStrings, *TorrentEmpty) error TorrentResume(context.Context, *TorrentStrings, *TorrentEmpty) error TorrentDelete(context.Context, *TorrentStrings, *TorrentEmpty) error TorrentDeleteWithFiles(context.Context, *TorrentStrings, *TorrentEmpty) error TorrentReCheck(context.Context, *TorrentStrings, *TorrentEmpty) error TorrentReAnnounce(context.Context, *TorrentStrings, *TorrentEmpty) error TorrentIncreasePriority(context.Context, *TorrentStrings, *TorrentEmpty) error TorrentDecreasePriority(context.Context, *TorrentStrings, *TorrentEmpty) error TorrentSetHighestPriority(context.Context, *TorrentStrings, *TorrentEmpty) error TorrentSetLowestPriority(context.Context, *TorrentStrings, *TorrentEmpty) error TorrentSetFilePriority(context.Context, *TorrentFilesPriority, *TorrentEmpty) error }
type TorrentString ¶
type TorrentString struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TorrentString) Descriptor ¶
func (*TorrentString) Descriptor() ([]byte, []int)
func (*TorrentString) GetValue ¶
func (m *TorrentString) GetValue() string
func (*TorrentString) ProtoMessage ¶
func (*TorrentString) ProtoMessage()
func (*TorrentString) Reset ¶
func (m *TorrentString) Reset()
func (*TorrentString) String ¶
func (m *TorrentString) String() string
func (*TorrentString) XXX_DiscardUnknown ¶
func (m *TorrentString) XXX_DiscardUnknown()
func (*TorrentString) XXX_Marshal ¶
func (m *TorrentString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TorrentString) XXX_Merge ¶
func (m *TorrentString) XXX_Merge(src proto.Message)
func (*TorrentString) XXX_Size ¶
func (m *TorrentString) XXX_Size() int
func (*TorrentString) XXX_Unmarshal ¶
func (m *TorrentString) XXX_Unmarshal(b []byte) error
type TorrentStrings ¶
type TorrentStrings struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TorrentStrings) Descriptor ¶
func (*TorrentStrings) Descriptor() ([]byte, []int)
func (*TorrentStrings) GetValues ¶
func (m *TorrentStrings) GetValues() []string
func (*TorrentStrings) ProtoMessage ¶
func (*TorrentStrings) ProtoMessage()
func (*TorrentStrings) Reset ¶
func (m *TorrentStrings) Reset()
func (*TorrentStrings) String ¶
func (m *TorrentStrings) String() string
func (*TorrentStrings) XXX_DiscardUnknown ¶
func (m *TorrentStrings) XXX_DiscardUnknown()
func (*TorrentStrings) XXX_Marshal ¶
func (m *TorrentStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TorrentStrings) XXX_Merge ¶
func (m *TorrentStrings) XXX_Merge(src proto.Message)
func (*TorrentStrings) XXX_Size ¶
func (m *TorrentStrings) XXX_Size() int
func (*TorrentStrings) XXX_Unmarshal ¶
func (m *TorrentStrings) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.