Documentation ¶
Index ¶
- Variables
- type Classification
- func (*Classification) Descriptor() ([]byte, []int)deprecated
- func (x *Classification) GetContentId() string
- func (x *Classification) GetContentSource() string
- func (x *Classification) GetContentType() Classification_ContentType
- func (x *Classification) GetEpisodes() []string
- func (x *Classification) GetHasAttachedContent() bool
- func (x *Classification) GetHasBaseTitle() bool
- func (x *Classification) GetLanguages() []string
- func (x *Classification) GetReleaseGroup() string
- func (x *Classification) GetVideo3D() string
- func (x *Classification) GetVideoCodec() string
- func (x *Classification) GetVideoResolution() string
- func (x *Classification) GetVideoSource() string
- func (x *Classification) GetYear() int32
- func (*Classification) ProtoMessage()
- func (x *Classification) ProtoReflect() protoreflect.Message
- func (x *Classification) Reset()
- func (x *Classification) String() string
- type Classification_ContentType
- func (Classification_ContentType) Descriptor() protoreflect.EnumDescriptor
- func (x Classification_ContentType) Enum() *Classification_ContentType
- func (Classification_ContentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Classification_ContentType) Number() protoreflect.EnumNumber
- func (x Classification_ContentType) String() string
- func (Classification_ContentType) Type() protoreflect.EnumType
- type Torrent
- func (*Torrent) Descriptor() ([]byte, []int)deprecated
- func (x *Torrent) GetBaseName() string
- func (x *Torrent) GetExtension() string
- func (x *Torrent) GetFileExtensions() []string
- func (x *Torrent) GetFiles() []*Torrent_File
- func (x *Torrent) GetFilesCount() int32
- func (x *Torrent) GetFilesSize() int64
- func (x *Torrent) GetHasHint() bool
- func (x *Torrent) GetHasHintedContentId() bool
- func (x *Torrent) GetInfoHash() string
- func (x *Torrent) GetLeechers() int32
- func (x *Torrent) GetName() string
- func (x *Torrent) GetSeeders() int32
- func (x *Torrent) GetSize() int64
- func (*Torrent) ProtoMessage()
- func (x *Torrent) ProtoReflect() protoreflect.Message
- func (x *Torrent) Reset()
- func (x *Torrent) String() string
- type Torrent_File
- func (*Torrent_File) Descriptor() ([]byte, []int)deprecated
- func (x *Torrent_File) GetBaseName() string
- func (x *Torrent_File) GetBasePath() string
- func (x *Torrent_File) GetExtension() string
- func (x *Torrent_File) GetFileType() Torrent_File_FileType
- func (x *Torrent_File) GetIndex() int32
- func (x *Torrent_File) GetPath() string
- func (x *Torrent_File) GetSize() int64
- func (*Torrent_File) ProtoMessage()
- func (x *Torrent_File) ProtoReflect() protoreflect.Message
- func (x *Torrent_File) Reset()
- func (x *Torrent_File) String() string
- type Torrent_File_FileType
- func (Torrent_File_FileType) Descriptor() protoreflect.EnumDescriptor
- func (x Torrent_File_FileType) Enum() *Torrent_File_FileType
- func (Torrent_File_FileType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Torrent_File_FileType) Number() protoreflect.EnumNumber
- func (x Torrent_File_FileType) String() string
- func (Torrent_File_FileType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Torrent_File_FileType_name = map[int32]string{ 0: "unknown", 1: "archive", 2: "audio", 3: "data", 4: "document", 5: "image", 6: "software", 7: "subtitles", 8: "video", } Torrent_File_FileType_value = map[string]int32{ "unknown": 0, "archive": 1, "audio": 2, "data": 3, "document": 4, "image": 5, "software": 6, "subtitles": 7, "video": 8, } )
Enum value maps for Torrent_File_FileType.
View Source
var ( Classification_ContentType_name = map[int32]string{ 0: "unknown", 1: "movie", 2: "tv_show", 3: "music", 4: "ebook", 5: "comic", 6: "audiobook", 7: "game", 8: "software", 9: "xxx", } Classification_ContentType_value = map[string]int32{ "unknown": 0, "movie": 1, "tv_show": 2, "music": 3, "ebook": 4, "comic": 5, "audiobook": 6, "game": 7, "software": 8, "xxx": 9, } )
Enum value maps for Classification_ContentType.
View Source
var File_internal_protobuf_bitmagnet_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Classification ¶
type Classification struct { ContentType Classification_ContentType `protobuf:"varint,1,opt,name=contentType,proto3,enum=bitmagnet.Classification_ContentType" json:"contentType,omitempty"` HasAttachedContent bool `protobuf:"varint,2,opt,name=hasAttachedContent,proto3" json:"hasAttachedContent,omitempty"` HasBaseTitle bool `protobuf:"varint,3,opt,name=hasBaseTitle,proto3" json:"hasBaseTitle,omitempty"` Year *int32 `protobuf:"varint,4,opt,name=year,proto3,oneof" json:"year,omitempty"` Languages []string `protobuf:"bytes,5,rep,name=languages,proto3" json:"languages,omitempty"` Episodes []string `protobuf:"bytes,6,rep,name=episodes,proto3" json:"episodes,omitempty"` VideoResolution *string `protobuf:"bytes,7,opt,name=videoResolution,proto3,oneof" json:"videoResolution,omitempty"` VideoSource *string `protobuf:"bytes,8,opt,name=videoSource,proto3,oneof" json:"videoSource,omitempty"` VideoCodec *string `protobuf:"bytes,9,opt,name=videoCodec,proto3,oneof" json:"videoCodec,omitempty"` Video3D *string `protobuf:"bytes,10,opt,name=video3d,proto3,oneof" json:"video3d,omitempty"` ReleaseGroup *string `protobuf:"bytes,11,opt,name=releaseGroup,proto3,oneof" json:"releaseGroup,omitempty"` ContentId *string `protobuf:"bytes,12,opt,name=contentId,proto3,oneof" json:"contentId,omitempty"` ContentSource *string `protobuf:"bytes,13,opt,name=contentSource,proto3,oneof" json:"contentSource,omitempty"` // contains filtered or unexported fields }
func NewClassification ¶
func NewClassification(c classification.Result) *Classification
func (*Classification) Descriptor
deprecated
func (*Classification) Descriptor() ([]byte, []int)
Deprecated: Use Classification.ProtoReflect.Descriptor instead.
func (*Classification) GetContentId ¶ added in v0.9.0
func (x *Classification) GetContentId() string
func (*Classification) GetContentSource ¶ added in v0.9.0
func (x *Classification) GetContentSource() string
func (*Classification) GetContentType ¶
func (x *Classification) GetContentType() Classification_ContentType
func (*Classification) GetEpisodes ¶
func (x *Classification) GetEpisodes() []string
func (*Classification) GetHasAttachedContent ¶
func (x *Classification) GetHasAttachedContent() bool
func (*Classification) GetHasBaseTitle ¶
func (x *Classification) GetHasBaseTitle() bool
func (*Classification) GetLanguages ¶
func (x *Classification) GetLanguages() []string
func (*Classification) GetReleaseGroup ¶
func (x *Classification) GetReleaseGroup() string
func (*Classification) GetVideo3D ¶
func (x *Classification) GetVideo3D() string
func (*Classification) GetVideoCodec ¶
func (x *Classification) GetVideoCodec() string
func (*Classification) GetVideoResolution ¶
func (x *Classification) GetVideoResolution() string
func (*Classification) GetVideoSource ¶
func (x *Classification) GetVideoSource() string
func (*Classification) GetYear ¶
func (x *Classification) GetYear() int32
func (*Classification) ProtoMessage ¶
func (*Classification) ProtoMessage()
func (*Classification) ProtoReflect ¶
func (x *Classification) ProtoReflect() protoreflect.Message
func (*Classification) Reset ¶
func (x *Classification) Reset()
func (*Classification) String ¶
func (x *Classification) String() string
type Classification_ContentType ¶
type Classification_ContentType int32
const ( Classification_unknown Classification_ContentType = 0 Classification_movie Classification_ContentType = 1 Classification_tv_show Classification_ContentType = 2 Classification_music Classification_ContentType = 3 Classification_ebook Classification_ContentType = 4 Classification_comic Classification_ContentType = 5 Classification_audiobook Classification_ContentType = 6 Classification_game Classification_ContentType = 7 Classification_software Classification_ContentType = 8 Classification_xxx Classification_ContentType = 9 )
func NewContentType ¶
func NewContentType(ct model.NullContentType) Classification_ContentType
func (Classification_ContentType) Descriptor ¶
func (Classification_ContentType) Descriptor() protoreflect.EnumDescriptor
func (Classification_ContentType) Enum ¶
func (x Classification_ContentType) Enum() *Classification_ContentType
func (Classification_ContentType) EnumDescriptor
deprecated
func (Classification_ContentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Classification_ContentType.Descriptor instead.
func (Classification_ContentType) Number ¶
func (x Classification_ContentType) Number() protoreflect.EnumNumber
func (Classification_ContentType) String ¶
func (x Classification_ContentType) String() string
func (Classification_ContentType) Type ¶
func (Classification_ContentType) Type() protoreflect.EnumType
type Torrent ¶
type Torrent struct { InfoHash string `protobuf:"bytes,1,opt,name=infoHash,proto3" json:"infoHash,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` BaseName string `protobuf:"bytes,3,opt,name=baseName,proto3" json:"baseName,omitempty"` Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` Extension *string `protobuf:"bytes,5,opt,name=extension,proto3,oneof" json:"extension,omitempty"` Files []*Torrent_File `protobuf:"bytes,6,rep,name=files,proto3" json:"files,omitempty"` FilesCount *int32 `protobuf:"varint,7,opt,name=filesCount,proto3,oneof" json:"filesCount,omitempty"` FilesSize *int64 `protobuf:"varint,8,opt,name=filesSize,proto3,oneof" json:"filesSize,omitempty"` FileExtensions []string `protobuf:"bytes,9,rep,name=fileExtensions,proto3" json:"fileExtensions,omitempty"` Seeders *int32 `protobuf:"varint,10,opt,name=seeders,proto3,oneof" json:"seeders,omitempty"` Leechers *int32 `protobuf:"varint,11,opt,name=leechers,proto3,oneof" json:"leechers,omitempty"` HasHint bool `protobuf:"varint,12,opt,name=hasHint,proto3" json:"hasHint,omitempty"` HasHintedContentId bool `protobuf:"varint,13,opt,name=hasHintedContentId,proto3" json:"hasHintedContentId,omitempty"` // contains filtered or unexported fields }
func NewTorrent ¶
func (*Torrent) Descriptor
deprecated
func (*Torrent) GetBaseName ¶
func (*Torrent) GetExtension ¶
func (*Torrent) GetFileExtensions ¶
func (*Torrent) GetFiles ¶
func (x *Torrent) GetFiles() []*Torrent_File
func (*Torrent) GetFilesCount ¶
func (*Torrent) GetFilesSize ¶
func (*Torrent) GetHasHint ¶
func (*Torrent) GetHasHintedContentId ¶
func (*Torrent) GetInfoHash ¶
func (*Torrent) GetLeechers ¶
func (*Torrent) GetSeeders ¶
func (*Torrent) ProtoMessage ¶
func (*Torrent) ProtoMessage()
func (*Torrent) ProtoReflect ¶
func (x *Torrent) ProtoReflect() protoreflect.Message
type Torrent_File ¶
type Torrent_File struct { Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` BasePath string `protobuf:"bytes,3,opt,name=basePath,proto3" json:"basePath,omitempty"` BaseName string `protobuf:"bytes,4,opt,name=baseName,proto3" json:"baseName,omitempty"` Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` Extension *string `protobuf:"bytes,6,opt,name=extension,proto3,oneof" json:"extension,omitempty"` FileType Torrent_File_FileType `protobuf:"varint,7,opt,name=fileType,proto3,enum=bitmagnet.Torrent_File_FileType" json:"fileType,omitempty"` // contains filtered or unexported fields }
func (*Torrent_File) Descriptor
deprecated
func (*Torrent_File) Descriptor() ([]byte, []int)
Deprecated: Use Torrent_File.ProtoReflect.Descriptor instead.
func (*Torrent_File) GetBaseName ¶
func (x *Torrent_File) GetBaseName() string
func (*Torrent_File) GetBasePath ¶
func (x *Torrent_File) GetBasePath() string
func (*Torrent_File) GetExtension ¶
func (x *Torrent_File) GetExtension() string
func (*Torrent_File) GetFileType ¶
func (x *Torrent_File) GetFileType() Torrent_File_FileType
func (*Torrent_File) GetIndex ¶
func (x *Torrent_File) GetIndex() int32
func (*Torrent_File) GetPath ¶
func (x *Torrent_File) GetPath() string
func (*Torrent_File) GetSize ¶
func (x *Torrent_File) GetSize() int64
func (*Torrent_File) ProtoMessage ¶
func (*Torrent_File) ProtoMessage()
func (*Torrent_File) ProtoReflect ¶
func (x *Torrent_File) ProtoReflect() protoreflect.Message
func (*Torrent_File) Reset ¶
func (x *Torrent_File) Reset()
func (*Torrent_File) String ¶
func (x *Torrent_File) String() string
type Torrent_File_FileType ¶
type Torrent_File_FileType int32
const ( Torrent_File_unknown Torrent_File_FileType = 0 Torrent_File_archive Torrent_File_FileType = 1 Torrent_File_audio Torrent_File_FileType = 2 Torrent_File_data Torrent_File_FileType = 3 Torrent_File_document Torrent_File_FileType = 4 Torrent_File_image Torrent_File_FileType = 5 Torrent_File_software Torrent_File_FileType = 6 Torrent_File_subtitles Torrent_File_FileType = 7 Torrent_File_video Torrent_File_FileType = 8 )
func NewFileType ¶
func NewFileType(ft model.NullFileType) Torrent_File_FileType
func (Torrent_File_FileType) Descriptor ¶
func (Torrent_File_FileType) Descriptor() protoreflect.EnumDescriptor
func (Torrent_File_FileType) Enum ¶
func (x Torrent_File_FileType) Enum() *Torrent_File_FileType
func (Torrent_File_FileType) EnumDescriptor
deprecated
func (Torrent_File_FileType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Torrent_File_FileType.Descriptor instead.
func (Torrent_File_FileType) Number ¶
func (x Torrent_File_FileType) Number() protoreflect.EnumNumber
func (Torrent_File_FileType) String ¶
func (x Torrent_File_FileType) String() string
func (Torrent_File_FileType) Type ¶
func (Torrent_File_FileType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.