proto

package
v0.0.0-...-522ee63 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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