protobuf

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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"`
	// 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) 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 (Classification_ContentType) Descriptor

func (Classification_ContentType) Enum

func (Classification_ContentType) EnumDescriptor deprecated

func (Classification_ContentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Classification_ContentType.Descriptor instead.

func (Classification_ContentType) Number

func (Classification_ContentType) String

func (Classification_ContentType) Type

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 NewTorrent(t model.Torrent) *Torrent

func (*Torrent) Descriptor deprecated

func (*Torrent) Descriptor() ([]byte, []int)

Deprecated: Use Torrent.ProtoReflect.Descriptor instead.

func (*Torrent) GetBaseName

func (x *Torrent) GetBaseName() string

func (*Torrent) GetExtension

func (x *Torrent) GetExtension() string

func (*Torrent) GetFileExtensions

func (x *Torrent) GetFileExtensions() []string

func (*Torrent) GetFiles

func (x *Torrent) GetFiles() []*Torrent_File

func (*Torrent) GetFilesCount

func (x *Torrent) GetFilesCount() int32

func (*Torrent) GetFilesSize

func (x *Torrent) GetFilesSize() int64

func (*Torrent) GetHasHint

func (x *Torrent) GetHasHint() bool

func (*Torrent) GetHasHintedContentId

func (x *Torrent) GetHasHintedContentId() bool

func (*Torrent) GetInfoHash

func (x *Torrent) GetInfoHash() string

func (*Torrent) GetLeechers

func (x *Torrent) GetLeechers() int32

func (*Torrent) GetName

func (x *Torrent) GetName() string

func (*Torrent) GetSeeders

func (x *Torrent) GetSeeders() int32

func (*Torrent) GetSize

func (x *Torrent) GetSize() int64

func (*Torrent) ProtoMessage

func (*Torrent) ProtoMessage()

func (*Torrent) ProtoReflect

func (x *Torrent) ProtoReflect() protoreflect.Message

func (*Torrent) Reset

func (x *Torrent) Reset()

func (*Torrent) String

func (x *Torrent) String() string

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 (Torrent_File_FileType) Descriptor

func (Torrent_File_FileType) Enum

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 (Torrent_File_FileType) String

func (x Torrent_File_FileType) String() string

func (Torrent_File_FileType) Type

Jump to

Keyboard shortcuts

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