v1

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccountAppRelationType_name = map[int32]string{
		0: "ACCOUNT_APP_RELATION_TYPE_UNSPECIFIED",
		1: "ACCOUNT_APP_RELATION_TYPE_OWN",
	}
	AccountAppRelationType_value = map[string]int32{
		"ACCOUNT_APP_RELATION_TYPE_UNSPECIFIED": 0,
		"ACCOUNT_APP_RELATION_TYPE_OWN":         1,
	}
)

Enum value maps for AccountAppRelationType.

View Source
var (
	AppType_name = map[int32]string{
		0: "APP_TYPE_UNSPECIFIED",
		1: "APP_TYPE_GAME",
	}
	AppType_value = map[string]int32{
		"APP_TYPE_UNSPECIFIED": 0,
		"APP_TYPE_GAME":        1,
	}
)

Enum value maps for AppType.

View Source
var (
	TimeAggregation_AggregationType_name = map[int32]string{
		0: "AGGREGATION_TYPE_UNSPECIFIED",
		1: "AGGREGATION_TYPE_OVERALL",
		2: "AGGREGATION_TYPE_YEAR",
		3: "AGGREGATION_TYPE_MONTH",
		4: "AGGREGATION_TYPE_DAY",
	}
	TimeAggregation_AggregationType_value = map[string]int32{
		"AGGREGATION_TYPE_UNSPECIFIED": 0,
		"AGGREGATION_TYPE_OVERALL":     1,
		"AGGREGATION_TYPE_YEAR":        2,
		"AGGREGATION_TYPE_MONTH":       3,
		"AGGREGATION_TYPE_DAY":         4,
	}
)

Enum value maps for TimeAggregation_AggregationType.

View Source
var (
	WellKnownAccountPlatform_name = map[int32]string{
		0: "WELL_KNOWN_ACCOUNT_PLATFORM_UNSPECIFIED",
		1: "WELL_KNOWN_ACCOUNT_PLATFORM_STEAM",
	}
	WellKnownAccountPlatform_value = map[string]int32{
		"WELL_KNOWN_ACCOUNT_PLATFORM_UNSPECIFIED": 0,
		"WELL_KNOWN_ACCOUNT_PLATFORM_STEAM":       1,
	}
)

Enum value maps for WellKnownAccountPlatform.

View Source
var (
	WellKnownAppInfoSource_name = map[int32]string{
		0: "WELL_KNOWN_APP_INFO_SOURCE_UNSPECIFIED",
		2: "WELL_KNOWN_APP_INFO_SOURCE_STEAM",
		3: "WELL_KNOWN_APP_INFO_SOURCE_VNDB",
		4: "WELL_KNOWN_APP_INFO_SOURCE_BANGUMI",
	}
	WellKnownAppInfoSource_value = map[string]int32{
		"WELL_KNOWN_APP_INFO_SOURCE_UNSPECIFIED": 0,
		"WELL_KNOWN_APP_INFO_SOURCE_STEAM":       2,
		"WELL_KNOWN_APP_INFO_SOURCE_VNDB":        3,
		"WELL_KNOWN_APP_INFO_SOURCE_BANGUMI":     4,
	}
)

Enum value maps for WellKnownAppInfoSource.

View Source
var (
	WellKnownFeedSource_name = map[int32]string{
		0: "WELL_KNOWN_FEED_SOURCE_UNSPECIFIED",
		1: "WELL_KNOWN_FEED_SOURCE_RSS",
	}
	WellKnownFeedSource_value = map[string]int32{
		"WELL_KNOWN_FEED_SOURCE_UNSPECIFIED": 0,
		"WELL_KNOWN_FEED_SOURCE_RSS":         1,
	}
)

Enum value maps for WellKnownFeedSource.

View Source
var (
	WellKnownNotifyDestination_name = map[int32]string{
		0: "WELL_KNOWN_NOTIFY_DESTINATION_UNSPECIFIED",
		1: "WELL_KNOWN_NOTIFY_DESTINATION_TELEGRAM",
	}
	WellKnownNotifyDestination_value = map[string]int32{
		"WELL_KNOWN_NOTIFY_DESTINATION_UNSPECIFIED": 0,
		"WELL_KNOWN_NOTIFY_DESTINATION_TELEGRAM":    1,
	}
)

Enum value maps for WellKnownNotifyDestination.

View Source
var (
	// optional string to_string = 1000;
	E_ToString = &file_librarian_v1_wellknown_proto_extTypes[0]
)

Extension fields to descriptorpb.EnumValueOptions.

View Source
var File_librarian_v1_common_proto protoreflect.FileDescriptor
View Source
var File_librarian_v1_wellknown_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Account

type Account struct {
	Id *InternalID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// WellKnownPlatform
	Platform          string                 `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	PlatformAccountId string                 `protobuf:"bytes,3,opt,name=platform_account_id,json=platformAccountId,proto3" json:"platform_account_id,omitempty"`
	Name              string                 `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	ProfileUrl        string                 `protobuf:"bytes,5,opt,name=profile_url,json=profileUrl,proto3" json:"profile_url,omitempty"`
	AvatarUrl         string                 `protobuf:"bytes,6,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	LatestUpdateTime  *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=latest_update_time,json=latestUpdateTime,proto3" json:"latest_update_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAvatarUrl

func (x *Account) GetAvatarUrl() string

func (*Account) GetId

func (x *Account) GetId() *InternalID

func (*Account) GetLatestUpdateTime added in v0.2.32

func (x *Account) GetLatestUpdateTime() *timestamppb.Timestamp

func (*Account) GetName

func (x *Account) GetName() string

func (*Account) GetPlatform

func (x *Account) GetPlatform() string

func (*Account) GetPlatformAccountId

func (x *Account) GetPlatformAccountId() string

func (*Account) GetProfileUrl

func (x *Account) GetProfileUrl() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountAppRelationType added in v0.3.0

type AccountAppRelationType int32
const (
	AccountAppRelationType_ACCOUNT_APP_RELATION_TYPE_UNSPECIFIED AccountAppRelationType = 0
	AccountAppRelationType_ACCOUNT_APP_RELATION_TYPE_OWN         AccountAppRelationType = 1
)

func (AccountAppRelationType) Descriptor added in v0.3.0

func (AccountAppRelationType) Enum added in v0.3.0

func (AccountAppRelationType) EnumDescriptor deprecated added in v0.3.0

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

Deprecated: Use AccountAppRelationType.Descriptor instead.

func (AccountAppRelationType) Number added in v0.3.0

func (AccountAppRelationType) String added in v0.3.0

func (x AccountAppRelationType) String() string

func (AccountAppRelationType) Type added in v0.3.0

type AccountID

type AccountID struct {

	// WellKnownAccountPlatform
	Platform          string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
	PlatformAccountId string `protobuf:"bytes,2,opt,name=platform_account_id,json=platformAccountId,proto3" json:"platform_account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountID) Descriptor deprecated

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

Deprecated: Use AccountID.ProtoReflect.Descriptor instead.

func (*AccountID) GetPlatform

func (x *AccountID) GetPlatform() string

func (*AccountID) GetPlatformAccountId

func (x *AccountID) GetPlatformAccountId() string

func (*AccountID) ProtoMessage

func (*AccountID) ProtoMessage()

func (*AccountID) ProtoReflect

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

func (*AccountID) Reset

func (x *AccountID) Reset()

func (*AccountID) String

func (x *AccountID) String() string

type AppInfo added in v0.4.0

type AppInfo struct {
	Id *InternalID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ignore `source` and `source_app_id` when `internal` is true
	Internal bool `protobuf:"varint,2,opt,name=internal,proto3" json:"internal,omitempty"`
	// WellKnownAppInfoSource
	Source           string          `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	SourceAppId      string          `protobuf:"bytes,4,opt,name=source_app_id,json=sourceAppId,proto3" json:"source_app_id,omitempty"`
	SourceUrl        *string         `protobuf:"bytes,5,opt,name=source_url,json=sourceUrl,proto3,oneof" json:"source_url,omitempty"`
	Details          *AppInfoDetails `protobuf:"bytes,6,opt,name=details,proto3,oneof" json:"details,omitempty"`
	Name             string          `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
	Type             AppType         `protobuf:"varint,8,opt,name=type,proto3,enum=librarian.v1.AppType" json:"type,omitempty"`
	ShortDescription string          `protobuf:"bytes,9,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"`
	IconImageUrl     string          `protobuf:"bytes,10,opt,name=icon_image_url,json=iconImageUrl,proto3" json:"icon_image_url,omitempty"`
	// must be horizontal, usually 16:9
	BackgroundImageUrl string `protobuf:"bytes,11,opt,name=background_image_url,json=backgroundImageUrl,proto3" json:"background_image_url,omitempty"`
	// must be vertical, usually 3:4
	CoverImageUrl string   `protobuf:"bytes,12,opt,name=cover_image_url,json=coverImageUrl,proto3" json:"cover_image_url,omitempty"`
	Tags          []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty"`
	AltNames      []string `protobuf:"bytes,14,rep,name=alt_names,json=altNames,proto3" json:"alt_names,omitempty"`
	// contains filtered or unexported fields
}

func (*AppInfo) Descriptor deprecated added in v0.4.0

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

Deprecated: Use AppInfo.ProtoReflect.Descriptor instead.

func (*AppInfo) GetAltNames added in v0.4.0

func (x *AppInfo) GetAltNames() []string

func (*AppInfo) GetBackgroundImageUrl added in v0.4.0

func (x *AppInfo) GetBackgroundImageUrl() string

func (*AppInfo) GetCoverImageUrl added in v0.4.0

func (x *AppInfo) GetCoverImageUrl() string

func (*AppInfo) GetDetails added in v0.4.0

func (x *AppInfo) GetDetails() *AppInfoDetails

func (*AppInfo) GetIconImageUrl added in v0.4.0

func (x *AppInfo) GetIconImageUrl() string

func (*AppInfo) GetId added in v0.4.0

func (x *AppInfo) GetId() *InternalID

func (*AppInfo) GetInternal added in v0.4.0

func (x *AppInfo) GetInternal() bool

func (*AppInfo) GetName added in v0.4.0

func (x *AppInfo) GetName() string

func (*AppInfo) GetShortDescription added in v0.4.0

func (x *AppInfo) GetShortDescription() string

func (*AppInfo) GetSource added in v0.4.0

func (x *AppInfo) GetSource() string

func (*AppInfo) GetSourceAppId added in v0.4.0

func (x *AppInfo) GetSourceAppId() string

func (*AppInfo) GetSourceUrl added in v0.4.0

func (x *AppInfo) GetSourceUrl() string

func (*AppInfo) GetTags added in v0.4.0

func (x *AppInfo) GetTags() []string

func (*AppInfo) GetType added in v0.4.0

func (x *AppInfo) GetType() AppType

func (*AppInfo) ProtoMessage added in v0.4.0

func (*AppInfo) ProtoMessage()

func (*AppInfo) ProtoReflect added in v0.4.0

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

func (*AppInfo) Reset added in v0.4.0

func (x *AppInfo) Reset()

func (*AppInfo) String added in v0.4.0

func (x *AppInfo) String() string

type AppInfoDetails added in v0.4.0

type AppInfoDetails struct {
	Description string   `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	ReleaseDate string   `protobuf:"bytes,2,opt,name=release_date,json=releaseDate,proto3" json:"release_date,omitempty"`
	Developer   string   `protobuf:"bytes,3,opt,name=developer,proto3" json:"developer,omitempty"`
	Publisher   string   `protobuf:"bytes,4,opt,name=publisher,proto3" json:"publisher,omitempty"`
	Version     string   `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
	ImageUrls   []string `protobuf:"bytes,6,rep,name=image_urls,json=imageUrls,proto3" json:"image_urls,omitempty"`
	// contains filtered or unexported fields
}

func (*AppInfoDetails) Descriptor deprecated added in v0.4.0

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

Deprecated: Use AppInfoDetails.ProtoReflect.Descriptor instead.

func (*AppInfoDetails) GetDescription added in v0.4.0

func (x *AppInfoDetails) GetDescription() string

func (*AppInfoDetails) GetDeveloper added in v0.4.0

func (x *AppInfoDetails) GetDeveloper() string

func (*AppInfoDetails) GetImageUrls added in v0.4.0

func (x *AppInfoDetails) GetImageUrls() []string

func (*AppInfoDetails) GetPublisher added in v0.4.0

func (x *AppInfoDetails) GetPublisher() string

func (*AppInfoDetails) GetReleaseDate added in v0.4.0

func (x *AppInfoDetails) GetReleaseDate() string

func (*AppInfoDetails) GetVersion added in v0.4.0

func (x *AppInfoDetails) GetVersion() string

func (*AppInfoDetails) ProtoMessage added in v0.4.0

func (*AppInfoDetails) ProtoMessage()

func (*AppInfoDetails) ProtoReflect added in v0.4.0

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

func (*AppInfoDetails) Reset added in v0.4.0

func (x *AppInfoDetails) Reset()

func (*AppInfoDetails) String added in v0.4.0

func (x *AppInfoDetails) String() string

type AppInfoID added in v0.4.0

type AppInfoID struct {
	Internal bool `protobuf:"varint,1,opt,name=internal,proto3" json:"internal,omitempty"`
	// WellKnownAppInfoSource
	Source      string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	SourceAppId string `protobuf:"bytes,3,opt,name=source_app_id,json=sourceAppId,proto3" json:"source_app_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AppInfoID) Descriptor deprecated added in v0.4.0

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

Deprecated: Use AppInfoID.ProtoReflect.Descriptor instead.

func (*AppInfoID) GetInternal added in v0.4.0

func (x *AppInfoID) GetInternal() bool

func (*AppInfoID) GetSource added in v0.4.0

func (x *AppInfoID) GetSource() string

func (*AppInfoID) GetSourceAppId added in v0.4.0

func (x *AppInfoID) GetSourceAppId() string

func (*AppInfoID) ProtoMessage added in v0.4.0

func (*AppInfoID) ProtoMessage()

func (*AppInfoID) ProtoReflect added in v0.4.0

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

func (*AppInfoID) Reset added in v0.4.0

func (x *AppInfoID) Reset()

func (*AppInfoID) String added in v0.4.0

func (x *AppInfoID) String() string

type AppInfoMixed added in v0.4.0

type AppInfoMixed struct {

	// internal app id
	Id               *InternalID     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Details          *AppInfoDetails `protobuf:"bytes,6,opt,name=details,proto3,oneof" json:"details,omitempty"`
	Name             string          `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
	Type             AppType         `protobuf:"varint,8,opt,name=type,proto3,enum=librarian.v1.AppType" json:"type,omitempty"`
	ShortDescription string          `protobuf:"bytes,9,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"`
	IconImageUrl     string          `protobuf:"bytes,10,opt,name=icon_image_url,json=iconImageUrl,proto3" json:"icon_image_url,omitempty"`
	// must be horizontal, usually 16:9
	BackgroundImageUrl string `protobuf:"bytes,11,opt,name=background_image_url,json=backgroundImageUrl,proto3" json:"background_image_url,omitempty"`
	// must be vertical, usually 3:4
	CoverImageUrl string   `protobuf:"bytes,12,opt,name=cover_image_url,json=coverImageUrl,proto3" json:"cover_image_url,omitempty"`
	Tags          []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty"`
	AltNames      []string `protobuf:"bytes,14,rep,name=alt_names,json=altNames,proto3" json:"alt_names,omitempty"`
	// contains filtered or unexported fields
}

Mixed info of bound apps

func (*AppInfoMixed) Descriptor deprecated added in v0.4.0

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

Deprecated: Use AppInfoMixed.ProtoReflect.Descriptor instead.

func (*AppInfoMixed) GetAltNames added in v0.4.0

func (x *AppInfoMixed) GetAltNames() []string

func (*AppInfoMixed) GetBackgroundImageUrl added in v0.4.0

func (x *AppInfoMixed) GetBackgroundImageUrl() string

func (*AppInfoMixed) GetCoverImageUrl added in v0.4.0

func (x *AppInfoMixed) GetCoverImageUrl() string

func (*AppInfoMixed) GetDetails added in v0.4.0

func (x *AppInfoMixed) GetDetails() *AppInfoDetails

func (*AppInfoMixed) GetIconImageUrl added in v0.4.0

func (x *AppInfoMixed) GetIconImageUrl() string

func (*AppInfoMixed) GetId added in v0.4.0

func (x *AppInfoMixed) GetId() *InternalID

func (*AppInfoMixed) GetName added in v0.4.0

func (x *AppInfoMixed) GetName() string

func (*AppInfoMixed) GetShortDescription added in v0.4.0

func (x *AppInfoMixed) GetShortDescription() string

func (*AppInfoMixed) GetTags added in v0.4.0

func (x *AppInfoMixed) GetTags() []string

func (*AppInfoMixed) GetType added in v0.4.0

func (x *AppInfoMixed) GetType() AppType

func (*AppInfoMixed) ProtoMessage added in v0.4.0

func (*AppInfoMixed) ProtoMessage()

func (*AppInfoMixed) ProtoReflect added in v0.4.0

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

func (*AppInfoMixed) Reset added in v0.4.0

func (x *AppInfoMixed) Reset()

func (*AppInfoMixed) String added in v0.4.0

func (x *AppInfoMixed) String() string

type AppType

type AppType int32
const (
	AppType_APP_TYPE_UNSPECIFIED AppType = 0
	AppType_APP_TYPE_GAME        AppType = 1
)

func (AppType) Descriptor

func (AppType) Descriptor() protoreflect.EnumDescriptor

func (AppType) Enum

func (x AppType) Enum() *AppType

func (AppType) EnumDescriptor deprecated

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

Deprecated: Use AppType.Descriptor instead.

func (AppType) Number

func (x AppType) Number() protoreflect.EnumNumber

func (AppType) String

func (x AppType) String() string

func (AppType) Type

func (AppType) Type() protoreflect.EnumType

type Feed

type Feed struct {
	Id *InternalID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// `standard field`
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// `standard field`
	Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"`
	// `standard field`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// `standard field`
	Items []*FeedItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"`
	// `standard field`
	Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"`
	// `standard field`
	Image *FeedImage `protobuf:"bytes,7,opt,name=image,proto3" json:"image,omitempty"`
	// `standard field`
	Authors []*FeedPerson `protobuf:"bytes,8,rep,name=authors,proto3" json:"authors,omitempty"`
	// contains filtered or unexported fields
}

func (*Feed) Descriptor deprecated

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

Deprecated: Use Feed.ProtoReflect.Descriptor instead.

func (*Feed) GetAuthors added in v0.2.4

func (x *Feed) GetAuthors() []*FeedPerson

func (*Feed) GetDescription

func (x *Feed) GetDescription() string

func (*Feed) GetId added in v0.2.5

func (x *Feed) GetId() *InternalID

func (*Feed) GetImage added in v0.2.4

func (x *Feed) GetImage() *FeedImage

func (*Feed) GetItems added in v0.2.4

func (x *Feed) GetItems() []*FeedItem

func (*Feed) GetLanguage

func (x *Feed) GetLanguage() string
func (x *Feed) GetLink() string

func (*Feed) GetTitle

func (x *Feed) GetTitle() string

func (*Feed) ProtoMessage

func (*Feed) ProtoMessage()

func (*Feed) ProtoReflect

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

func (*Feed) Reset

func (x *Feed) Reset()

func (*Feed) String

func (x *Feed) String() string

type FeedEnclosure

type FeedEnclosure struct {

	// `standard field`
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// `standard field`
	Length string `protobuf:"bytes,2,opt,name=length,proto3" json:"length,omitempty"`
	// `standard field`
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Enclosure is a file associated with a given Item.

func (*FeedEnclosure) Descriptor deprecated

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

Deprecated: Use FeedEnclosure.ProtoReflect.Descriptor instead.

func (*FeedEnclosure) GetLength

func (x *FeedEnclosure) GetLength() string

func (*FeedEnclosure) GetType

func (x *FeedEnclosure) GetType() string

func (*FeedEnclosure) GetUrl

func (x *FeedEnclosure) GetUrl() string

func (*FeedEnclosure) ProtoMessage

func (*FeedEnclosure) ProtoMessage()

func (*FeedEnclosure) ProtoReflect

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

func (*FeedEnclosure) Reset

func (x *FeedEnclosure) Reset()

func (*FeedEnclosure) String

func (x *FeedEnclosure) String() string

type FeedImage added in v0.2.4

type FeedImage struct {

	// `standard field`
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// `standard field`
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

Image is an image that is the artwork for a given feed or item.

func (*FeedImage) Descriptor deprecated added in v0.2.4

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

Deprecated: Use FeedImage.ProtoReflect.Descriptor instead.

func (*FeedImage) GetTitle added in v0.2.4

func (x *FeedImage) GetTitle() string

func (*FeedImage) GetUrl added in v0.2.4

func (x *FeedImage) GetUrl() string

func (*FeedImage) ProtoMessage added in v0.2.4

func (*FeedImage) ProtoMessage()

func (*FeedImage) ProtoReflect added in v0.2.4

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

func (*FeedImage) Reset added in v0.2.4

func (x *FeedImage) Reset()

func (*FeedImage) String added in v0.2.4

func (x *FeedImage) String() string

type FeedItem

type FeedItem struct {
	Id *InternalID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// `standard field`
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// `standard field`
	Authors []*FeedPerson `protobuf:"bytes,3,rep,name=authors,proto3" json:"authors,omitempty"`
	// `standard field`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// `standard field`
	Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
	// `standard field`
	Guid string `protobuf:"bytes,6,opt,name=guid,proto3" json:"guid,omitempty"`
	// `standard field`. e.g. https://github.com/TuiHub/Librarian/releases.atom
	Link string `protobuf:"bytes,7,opt,name=link,proto3" json:"link,omitempty"`
	// `standard field`
	Image *FeedImage `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"`
	// `standard field`
	Published string `protobuf:"bytes,9,opt,name=published,proto3" json:"published,omitempty"`
	// must valid when send to client.
	// if server failed to generate, fallback to server time.
	PublishedParsed *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=published_parsed,json=publishedParsed,proto3,oneof" json:"published_parsed,omitempty"`
	// `standard field`
	Updated       string                 `protobuf:"bytes,11,opt,name=updated,proto3" json:"updated,omitempty"`
	UpdatedParsed *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated_parsed,json=updatedParsed,proto3,oneof" json:"updated_parsed,omitempty"`
	// `standard field`
	Enclosures []*FeedEnclosure `protobuf:"bytes,13,rep,name=enclosures,proto3" json:"enclosures,omitempty"`
	// hostname of `link`. e.g. github.com
	PublishPlatform string `protobuf:"bytes,14,opt,name=publish_platform,json=publishPlatform,proto3" json:"publish_platform,omitempty"`
	// recorded read times
	ReadCount int64 `protobuf:"varint,15,opt,name=read_count,json=readCount,proto3" json:"read_count,omitempty"`
	// contains filtered or unexported fields
}

func (*FeedItem) Descriptor deprecated

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

Deprecated: Use FeedItem.ProtoReflect.Descriptor instead.

func (*FeedItem) GetAuthors added in v0.2.4

func (x *FeedItem) GetAuthors() []*FeedPerson

func (*FeedItem) GetContent

func (x *FeedItem) GetContent() string

func (*FeedItem) GetDescription

func (x *FeedItem) GetDescription() string

func (*FeedItem) GetEnclosures added in v0.2.7

func (x *FeedItem) GetEnclosures() []*FeedEnclosure

func (*FeedItem) GetGuid

func (x *FeedItem) GetGuid() string

func (*FeedItem) GetId added in v0.2.5

func (x *FeedItem) GetId() *InternalID

func (*FeedItem) GetImage added in v0.2.4

func (x *FeedItem) GetImage() *FeedImage
func (x *FeedItem) GetLink() string

func (*FeedItem) GetPublishPlatform added in v0.2.9

func (x *FeedItem) GetPublishPlatform() string

func (*FeedItem) GetPublished added in v0.2.4

func (x *FeedItem) GetPublished() string

func (*FeedItem) GetPublishedParsed added in v0.2.4

func (x *FeedItem) GetPublishedParsed() *timestamppb.Timestamp

func (*FeedItem) GetReadCount added in v0.2.46

func (x *FeedItem) GetReadCount() int64

func (*FeedItem) GetTitle

func (x *FeedItem) GetTitle() string

func (*FeedItem) GetUpdated added in v0.2.4

func (x *FeedItem) GetUpdated() string

func (*FeedItem) GetUpdatedParsed added in v0.2.4

func (x *FeedItem) GetUpdatedParsed() *timestamppb.Timestamp

func (*FeedItem) ProtoMessage

func (*FeedItem) ProtoMessage()

func (*FeedItem) ProtoReflect

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

func (*FeedItem) Reset

func (x *FeedItem) Reset()

func (*FeedItem) String

func (x *FeedItem) String() string

type FeedPerson added in v0.2.4

type FeedPerson struct {

	// `standard field`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// `standard field`
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

Person is an individual specified in a feed (e.g. an author)

func (*FeedPerson) Descriptor deprecated added in v0.2.4

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

Deprecated: Use FeedPerson.ProtoReflect.Descriptor instead.

func (*FeedPerson) GetEmail added in v0.2.4

func (x *FeedPerson) GetEmail() string

func (*FeedPerson) GetName added in v0.2.4

func (x *FeedPerson) GetName() string

func (*FeedPerson) ProtoMessage added in v0.2.4

func (*FeedPerson) ProtoMessage()

func (*FeedPerson) ProtoReflect added in v0.2.4

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

func (*FeedPerson) Reset added in v0.2.4

func (x *FeedPerson) Reset()

func (*FeedPerson) String added in v0.2.4

func (x *FeedPerson) String() string

type InternalID

type InternalID struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

A globally unique identifier generated by `Searcher`

func (*InternalID) Descriptor deprecated

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

Deprecated: Use InternalID.ProtoReflect.Descriptor instead.

func (*InternalID) GetId

func (x *InternalID) GetId() int64

func (*InternalID) ProtoMessage

func (*InternalID) ProtoMessage()

func (*InternalID) ProtoReflect

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

func (*InternalID) Reset

func (x *InternalID) Reset()

func (*InternalID) String

func (x *InternalID) String() string

type PagingRequest

type PagingRequest struct {

	// start from 1, not 0
	PageNum  int64 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*PagingRequest) Descriptor deprecated

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

Deprecated: Use PagingRequest.ProtoReflect.Descriptor instead.

func (*PagingRequest) GetPageNum

func (x *PagingRequest) GetPageNum() int64

func (*PagingRequest) GetPageSize

func (x *PagingRequest) GetPageSize() int64

func (*PagingRequest) ProtoMessage

func (*PagingRequest) ProtoMessage()

func (*PagingRequest) ProtoReflect

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

func (*PagingRequest) Reset

func (x *PagingRequest) Reset()

func (*PagingRequest) String

func (x *PagingRequest) String() string

type PagingResponse

type PagingResponse struct {
	TotalSize int64 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*PagingResponse) Descriptor deprecated

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

Deprecated: Use PagingResponse.ProtoReflect.Descriptor instead.

func (*PagingResponse) GetTotalSize added in v0.2.9

func (x *PagingResponse) GetTotalSize() int64

func (*PagingResponse) ProtoMessage

func (*PagingResponse) ProtoMessage()

func (*PagingResponse) ProtoReflect

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

func (*PagingResponse) Reset

func (x *PagingResponse) Reset()

func (*PagingResponse) String

func (x *PagingResponse) String() string

type TimeAggregation added in v0.2.43

type TimeAggregation struct {
	AggregationType TimeAggregation_AggregationType `` /* 157-byte string literal not displayed */
	// The `TimeRange` should be adjusted on the server side to align with the nearest boundary when aggregating.
	// e.g. the request TimeRange is 2023.2.13 9:26 ~ 2023.3.14 17:21.
	// For aggregating by year, rounded to 2023.1.1 00:00 ~ 2024.1.1 00:00.
	// For aggregating by month, rounded to 2023.2.1 00:00 ~ 2023.4.1 00:00.
	// For aggregating by day, rounded to 2023.2.13 00:00 ~ 2023.3.15 00:00.
	TimeRange *TimeRange `protobuf:"bytes,2,opt,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"`
	// contains filtered or unexported fields
}

Should be used in request messages

func (*TimeAggregation) Descriptor deprecated added in v0.2.43

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

Deprecated: Use TimeAggregation.ProtoReflect.Descriptor instead.

func (*TimeAggregation) GetAggregationType added in v0.2.43

func (x *TimeAggregation) GetAggregationType() TimeAggregation_AggregationType

func (*TimeAggregation) GetTimeRange added in v0.2.43

func (x *TimeAggregation) GetTimeRange() *TimeRange

func (*TimeAggregation) ProtoMessage added in v0.2.43

func (*TimeAggregation) ProtoMessage()

func (*TimeAggregation) ProtoReflect added in v0.2.43

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

func (*TimeAggregation) Reset added in v0.2.43

func (x *TimeAggregation) Reset()

func (*TimeAggregation) String added in v0.2.43

func (x *TimeAggregation) String() string

type TimeAggregation_AggregationType added in v0.2.43

type TimeAggregation_AggregationType int32
const (
	TimeAggregation_AGGREGATION_TYPE_UNSPECIFIED TimeAggregation_AggregationType = 0
	TimeAggregation_AGGREGATION_TYPE_OVERALL     TimeAggregation_AggregationType = 1
	TimeAggregation_AGGREGATION_TYPE_YEAR        TimeAggregation_AggregationType = 2
	TimeAggregation_AGGREGATION_TYPE_MONTH       TimeAggregation_AggregationType = 3
	TimeAggregation_AGGREGATION_TYPE_DAY         TimeAggregation_AggregationType = 4
)

func (TimeAggregation_AggregationType) Descriptor added in v0.2.43

func (TimeAggregation_AggregationType) Enum added in v0.2.43

func (TimeAggregation_AggregationType) EnumDescriptor deprecated added in v0.2.43

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

Deprecated: Use TimeAggregation_AggregationType.Descriptor instead.

func (TimeAggregation_AggregationType) Number added in v0.2.43

func (TimeAggregation_AggregationType) String added in v0.2.43

func (TimeAggregation_AggregationType) Type added in v0.2.43

type TimeRange added in v0.2.12

type TimeRange struct {
	StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	Duration  *durationpb.Duration   `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

half-open e.g.

{
  start_time: "2023.01.01 00:00",
  duration: "1d"
}

means the whole day of 2023.1.1; or [2023.01.01 00:00 , 2023.01.02 00:00)

func (*TimeRange) Descriptor deprecated added in v0.2.12

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

Deprecated: Use TimeRange.ProtoReflect.Descriptor instead.

func (*TimeRange) GetDuration added in v0.2.12

func (x *TimeRange) GetDuration() *durationpb.Duration

func (*TimeRange) GetStartTime added in v0.2.12

func (x *TimeRange) GetStartTime() *timestamppb.Timestamp

func (*TimeRange) ProtoMessage added in v0.2.12

func (*TimeRange) ProtoMessage()

func (*TimeRange) ProtoReflect added in v0.2.12

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

func (*TimeRange) Reset added in v0.2.12

func (x *TimeRange) Reset()

func (*TimeRange) String added in v0.2.12

func (x *TimeRange) String() string

type WellKnownAccountPlatform added in v0.3.0

type WellKnownAccountPlatform int32
const (
	WellKnownAccountPlatform_WELL_KNOWN_ACCOUNT_PLATFORM_UNSPECIFIED WellKnownAccountPlatform = 0
	WellKnownAccountPlatform_WELL_KNOWN_ACCOUNT_PLATFORM_STEAM       WellKnownAccountPlatform = 1
)

func (WellKnownAccountPlatform) Descriptor added in v0.3.0

func (WellKnownAccountPlatform) Enum added in v0.3.0

func (WellKnownAccountPlatform) EnumDescriptor deprecated added in v0.3.0

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

Deprecated: Use WellKnownAccountPlatform.Descriptor instead.

func (WellKnownAccountPlatform) Number added in v0.3.0

func (WellKnownAccountPlatform) String added in v0.3.0

func (x WellKnownAccountPlatform) String() string

func (WellKnownAccountPlatform) Type added in v0.3.0

type WellKnownAppInfoSource added in v0.4.1

type WellKnownAppInfoSource int32
const (
	WellKnownAppInfoSource_WELL_KNOWN_APP_INFO_SOURCE_UNSPECIFIED WellKnownAppInfoSource = 0
	WellKnownAppInfoSource_WELL_KNOWN_APP_INFO_SOURCE_STEAM       WellKnownAppInfoSource = 2
	WellKnownAppInfoSource_WELL_KNOWN_APP_INFO_SOURCE_VNDB        WellKnownAppInfoSource = 3
	WellKnownAppInfoSource_WELL_KNOWN_APP_INFO_SOURCE_BANGUMI     WellKnownAppInfoSource = 4
)

func (WellKnownAppInfoSource) Descriptor added in v0.4.1

func (WellKnownAppInfoSource) Enum added in v0.4.1

func (WellKnownAppInfoSource) EnumDescriptor deprecated added in v0.4.1

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

Deprecated: Use WellKnownAppInfoSource.Descriptor instead.

func (WellKnownAppInfoSource) Number added in v0.4.1

func (WellKnownAppInfoSource) String added in v0.4.1

func (x WellKnownAppInfoSource) String() string

func (WellKnownAppInfoSource) Type added in v0.4.1

type WellKnownFeedSource added in v0.3.0

type WellKnownFeedSource int32
const (
	WellKnownFeedSource_WELL_KNOWN_FEED_SOURCE_UNSPECIFIED WellKnownFeedSource = 0
	WellKnownFeedSource_WELL_KNOWN_FEED_SOURCE_RSS         WellKnownFeedSource = 1
)

func (WellKnownFeedSource) Descriptor added in v0.3.0

func (WellKnownFeedSource) Enum added in v0.3.0

func (WellKnownFeedSource) EnumDescriptor deprecated added in v0.3.0

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

Deprecated: Use WellKnownFeedSource.Descriptor instead.

func (WellKnownFeedSource) Number added in v0.3.0

func (WellKnownFeedSource) String added in v0.3.0

func (x WellKnownFeedSource) String() string

func (WellKnownFeedSource) Type added in v0.3.0

type WellKnownNotifyDestination added in v0.3.0

type WellKnownNotifyDestination int32
const (
	WellKnownNotifyDestination_WELL_KNOWN_NOTIFY_DESTINATION_UNSPECIFIED WellKnownNotifyDestination = 0
	WellKnownNotifyDestination_WELL_KNOWN_NOTIFY_DESTINATION_TELEGRAM    WellKnownNotifyDestination = 1
)

func (WellKnownNotifyDestination) Descriptor added in v0.3.0

func (WellKnownNotifyDestination) Enum added in v0.3.0

func (WellKnownNotifyDestination) EnumDescriptor deprecated added in v0.3.0

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

Deprecated: Use WellKnownNotifyDestination.Descriptor instead.

func (WellKnownNotifyDestination) Number added in v0.3.0

func (WellKnownNotifyDestination) String added in v0.3.0

func (WellKnownNotifyDestination) Type added in v0.3.0

Jump to

Keyboard shortcuts

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