Documentation
¶
Index ¶
- func RegisterMagnet2TorrentServer(s *grpc.Server, srv Magnet2TorrentServer)
- type Magnet2TorrentClient
- type Magnet2TorrentReply
- func (*Magnet2TorrentReply) Descriptor() ([]byte, []int)
- func (m *Magnet2TorrentReply) GetTorrent() []byte
- func (*Magnet2TorrentReply) ProtoMessage()
- func (m *Magnet2TorrentReply) Reset()
- func (m *Magnet2TorrentReply) String() string
- func (m *Magnet2TorrentReply) XXX_DiscardUnknown()
- func (m *Magnet2TorrentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Magnet2TorrentReply) XXX_Merge(src proto.Message)
- func (m *Magnet2TorrentReply) XXX_Size() int
- func (m *Magnet2TorrentReply) XXX_Unmarshal(b []byte) error
- type Magnet2TorrentRequest
- func (*Magnet2TorrentRequest) Descriptor() ([]byte, []int)
- func (m *Magnet2TorrentRequest) GetMagnet() string
- func (*Magnet2TorrentRequest) ProtoMessage()
- func (m *Magnet2TorrentRequest) Reset()
- func (m *Magnet2TorrentRequest) String() string
- func (m *Magnet2TorrentRequest) XXX_DiscardUnknown()
- func (m *Magnet2TorrentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Magnet2TorrentRequest) XXX_Merge(src proto.Message)
- func (m *Magnet2TorrentRequest) XXX_Size() int
- func (m *Magnet2TorrentRequest) XXX_Unmarshal(b []byte) error
- type Magnet2TorrentServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMagnet2TorrentServer ¶
func RegisterMagnet2TorrentServer(s *grpc.Server, srv Magnet2TorrentServer)
Types ¶
type Magnet2TorrentClient ¶
type Magnet2TorrentClient interface { // Converts magnet uri to torrent file Magnet2Torrent(ctx context.Context, in *Magnet2TorrentRequest, opts ...grpc.CallOption) (*Magnet2TorrentReply, error) }
Magnet2TorrentClient is the client API for Magnet2Torrent service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMagnet2TorrentClient ¶
func NewMagnet2TorrentClient(cc *grpc.ClientConn) Magnet2TorrentClient
type Magnet2TorrentReply ¶
type Magnet2TorrentReply struct { Torrent []byte `protobuf:"bytes,1,opt,name=torrent,proto3" json:"torrent,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing the torrent
func (*Magnet2TorrentReply) Descriptor ¶
func (*Magnet2TorrentReply) Descriptor() ([]byte, []int)
func (*Magnet2TorrentReply) GetTorrent ¶
func (m *Magnet2TorrentReply) GetTorrent() []byte
func (*Magnet2TorrentReply) ProtoMessage ¶
func (*Magnet2TorrentReply) ProtoMessage()
func (*Magnet2TorrentReply) Reset ¶
func (m *Magnet2TorrentReply) Reset()
func (*Magnet2TorrentReply) String ¶
func (m *Magnet2TorrentReply) String() string
func (*Magnet2TorrentReply) XXX_DiscardUnknown ¶
func (m *Magnet2TorrentReply) XXX_DiscardUnknown()
func (*Magnet2TorrentReply) XXX_Marshal ¶
func (m *Magnet2TorrentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Magnet2TorrentReply) XXX_Merge ¶
func (dst *Magnet2TorrentReply) XXX_Merge(src proto.Message)
func (*Magnet2TorrentReply) XXX_Size ¶
func (m *Magnet2TorrentReply) XXX_Size() int
func (*Magnet2TorrentReply) XXX_Unmarshal ¶
func (m *Magnet2TorrentReply) XXX_Unmarshal(b []byte) error
type Magnet2TorrentRequest ¶
type Magnet2TorrentRequest struct { Magnet string `protobuf:"bytes,1,opt,name=magnet,proto3" json:"magnet,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the magnet url
func (*Magnet2TorrentRequest) Descriptor ¶
func (*Magnet2TorrentRequest) Descriptor() ([]byte, []int)
func (*Magnet2TorrentRequest) GetMagnet ¶
func (m *Magnet2TorrentRequest) GetMagnet() string
func (*Magnet2TorrentRequest) ProtoMessage ¶
func (*Magnet2TorrentRequest) ProtoMessage()
func (*Magnet2TorrentRequest) Reset ¶
func (m *Magnet2TorrentRequest) Reset()
func (*Magnet2TorrentRequest) String ¶
func (m *Magnet2TorrentRequest) String() string
func (*Magnet2TorrentRequest) XXX_DiscardUnknown ¶
func (m *Magnet2TorrentRequest) XXX_DiscardUnknown()
func (*Magnet2TorrentRequest) XXX_Marshal ¶
func (m *Magnet2TorrentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Magnet2TorrentRequest) XXX_Merge ¶
func (dst *Magnet2TorrentRequest) XXX_Merge(src proto.Message)
func (*Magnet2TorrentRequest) XXX_Size ¶
func (m *Magnet2TorrentRequest) XXX_Size() int
func (*Magnet2TorrentRequest) XXX_Unmarshal ¶
func (m *Magnet2TorrentRequest) XXX_Unmarshal(b []byte) error
type Magnet2TorrentServer ¶
type Magnet2TorrentServer interface { // Converts magnet uri to torrent file Magnet2Torrent(context.Context, *Magnet2TorrentRequest) (*Magnet2TorrentReply, error) }
Magnet2TorrentServer is the server API for Magnet2Torrent service.
Click to show internal directories.
Click to hide internal directories.