v1

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccountPlatform_name = map[int32]string{
		0: "ACCOUNT_PLATFORM_UNSPECIFIED",
		1: "ACCOUNT_PLATFORM_STEAM",
	}
	AccountPlatform_value = map[string]int32{
		"ACCOUNT_PLATFORM_UNSPECIFIED": 0,
		"ACCOUNT_PLATFORM_STEAM":       1,
	}
)

Enum value maps for AccountPlatform.

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 (
	AppSource_name = map[int32]string{
		0: "APP_SOURCE_UNSPECIFIED",
		1: "APP_SOURCE_INTERNAL",
		2: "APP_SOURCE_STEAM",
	}
	AppSource_value = map[string]int32{
		"APP_SOURCE_UNSPECIFIED": 0,
		"APP_SOURCE_INTERNAL":    1,
		"APP_SOURCE_STEAM":       2,
	}
)

Enum value maps for AppSource.

View Source
var (
	AppPackageSource_name = map[int32]string{
		0: "APP_PACKAGE_SOURCE_UNSPECIFIED",
		1: "APP_PACKAGE_SOURCE_MANUAL",
		2: "APP_PACKAGE_SOURCE_SENTINEL",
	}
	AppPackageSource_value = map[string]int32{
		"APP_PACKAGE_SOURCE_UNSPECIFIED": 0,
		"APP_PACKAGE_SOURCE_MANUAL":      1,
		"APP_PACKAGE_SOURCE_SENTINEL":    2,
	}
)

Enum value maps for AppPackageSource.

View Source
var File_librarian_v1_common_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"`
	Platform          AccountPlatform `protobuf:"varint,2,opt,name=platform,proto3,enum=librarian.v1.AccountPlatform" 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"`
	// 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) GetName

func (x *Account) GetName() string

func (*Account) GetPlatform

func (x *Account) GetPlatform() AccountPlatform

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 AccountID

type AccountID struct {
	Platform          AccountPlatform `protobuf:"varint,1,opt,name=platform,proto3,enum=librarian.v1.AccountPlatform" 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() AccountPlatform

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 AccountPlatform

type AccountPlatform int32
const (
	AccountPlatform_ACCOUNT_PLATFORM_UNSPECIFIED AccountPlatform = 0
	AccountPlatform_ACCOUNT_PLATFORM_STEAM       AccountPlatform = 1
)

func (AccountPlatform) Descriptor

func (AccountPlatform) Enum

func (x AccountPlatform) Enum() *AccountPlatform

func (AccountPlatform) EnumDescriptor deprecated

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

Deprecated: Use AccountPlatform.Descriptor instead.

func (AccountPlatform) Number

func (AccountPlatform) String

func (x AccountPlatform) String() string

func (AccountPlatform) Type

type App

type App struct {
	Id               *InternalID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Source           AppSource   `protobuf:"varint,2,opt,name=source,proto3,enum=librarian.v1.AppSource" json:"source,omitempty"`
	SourceAppId      string      `protobuf:"bytes,3,opt,name=source_app_id,json=sourceAppId,proto3" json:"source_app_id,omitempty"`
	SourceUrl        *string     `protobuf:"bytes,4,opt,name=source_url,json=sourceUrl,proto3,oneof" json:"source_url,omitempty"`
	Name             string      `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	Type             AppType     `protobuf:"varint,7,opt,name=type,proto3,enum=librarian.v1.AppType" json:"type,omitempty"`
	ShortDescription string      `protobuf:"bytes,8,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"`
	ImageUrl         string      `protobuf:"bytes,9,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	Details          *AppDetails `protobuf:"bytes,10,opt,name=details,proto3,oneof" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*App) Descriptor deprecated

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

Deprecated: Use App.ProtoReflect.Descriptor instead.

func (*App) GetDetails

func (x *App) GetDetails() *AppDetails

func (*App) GetId

func (x *App) GetId() *InternalID

func (*App) GetImageUrl

func (x *App) GetImageUrl() string

func (*App) GetName

func (x *App) GetName() string

func (*App) GetShortDescription

func (x *App) GetShortDescription() string

func (*App) GetSource

func (x *App) GetSource() AppSource

func (*App) GetSourceAppId

func (x *App) GetSourceAppId() string

func (*App) GetSourceUrl

func (x *App) GetSourceUrl() string

func (*App) GetType

func (x *App) GetType() AppType

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) ProtoReflect

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

func (*App) Reset

func (x *App) Reset()

func (*App) String

func (x *App) String() string

type AppDetails

type AppDetails 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"`
	// contains filtered or unexported fields
}

func (*AppDetails) Descriptor deprecated

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

Deprecated: Use AppDetails.ProtoReflect.Descriptor instead.

func (*AppDetails) GetDescription

func (x *AppDetails) GetDescription() string

func (*AppDetails) GetDeveloper

func (x *AppDetails) GetDeveloper() string

func (*AppDetails) GetPublisher

func (x *AppDetails) GetPublisher() string

func (*AppDetails) GetReleaseDate

func (x *AppDetails) GetReleaseDate() string

func (*AppDetails) GetVersion

func (x *AppDetails) GetVersion() string

func (*AppDetails) ProtoMessage

func (*AppDetails) ProtoMessage()

func (*AppDetails) ProtoReflect

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

func (*AppDetails) Reset

func (x *AppDetails) Reset()

func (*AppDetails) String

func (x *AppDetails) String() string

type AppID

type AppID struct {
	Source      AppSource `protobuf:"varint,1,opt,name=source,proto3,enum=librarian.v1.AppSource" json:"source,omitempty"`
	SourceAppId string    `protobuf:"bytes,2,opt,name=source_app_id,json=sourceAppId,proto3" json:"source_app_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AppID) Descriptor deprecated

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

Deprecated: Use AppID.ProtoReflect.Descriptor instead.

func (*AppID) GetSource

func (x *AppID) GetSource() AppSource

func (*AppID) GetSourceAppId

func (x *AppID) GetSourceAppId() string

func (*AppID) ProtoMessage

func (*AppID) ProtoMessage()

func (*AppID) ProtoReflect

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

func (*AppID) Reset

func (x *AppID) Reset()

func (*AppID) String

func (x *AppID) String() string

type AppPackage

type AppPackage struct {
	Id              *InternalID       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Source          AppPackageSource  `protobuf:"varint,2,opt,name=source,proto3,enum=librarian.v1.AppPackageSource" json:"source,omitempty"`
	SourceId        *InternalID       `protobuf:"bytes,3,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	SourcePackageId string            `protobuf:"bytes,4,opt,name=source_package_id,json=sourcePackageId,proto3" json:"source_package_id,omitempty"`
	Name            string            `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	Description     string            `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Binary          *AppPackageBinary `protobuf:"bytes,7,opt,name=binary,proto3" json:"binary,omitempty"`
	// false by default
	Public bool `protobuf:"varint,8,opt,name=public,proto3" json:"public,omitempty"`
	// contains filtered or unexported fields
}

func (*AppPackage) Descriptor deprecated

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

Deprecated: Use AppPackage.ProtoReflect.Descriptor instead.

func (*AppPackage) GetBinary

func (x *AppPackage) GetBinary() *AppPackageBinary

func (*AppPackage) GetDescription

func (x *AppPackage) GetDescription() string

func (*AppPackage) GetId

func (x *AppPackage) GetId() *InternalID

func (*AppPackage) GetName added in v0.2.2

func (x *AppPackage) GetName() string

func (*AppPackage) GetPublic added in v0.2.11

func (x *AppPackage) GetPublic() bool

func (*AppPackage) GetSource

func (x *AppPackage) GetSource() AppPackageSource

func (*AppPackage) GetSourceId

func (x *AppPackage) GetSourceId() *InternalID

func (*AppPackage) GetSourcePackageId

func (x *AppPackage) GetSourcePackageId() string

func (*AppPackage) ProtoMessage

func (*AppPackage) ProtoMessage()

func (*AppPackage) ProtoReflect

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

func (*AppPackage) Reset

func (x *AppPackage) Reset()

func (*AppPackage) String

func (x *AppPackage) String() string

type AppPackageBinary

type AppPackageBinary struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SizeByte  int64  `protobuf:"varint,2,opt,name=size_byte,json=sizeByte,proto3" json:"size_byte,omitempty"`
	PublicUrl string `protobuf:"bytes,3,opt,name=public_url,json=publicUrl,proto3" json:"public_url,omitempty"`
	// contains filtered or unexported fields
}

func (*AppPackageBinary) Descriptor deprecated

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

Deprecated: Use AppPackageBinary.ProtoReflect.Descriptor instead.

func (*AppPackageBinary) GetName

func (x *AppPackageBinary) GetName() string

func (*AppPackageBinary) GetPublicUrl

func (x *AppPackageBinary) GetPublicUrl() string

func (*AppPackageBinary) GetSizeByte added in v0.2.11

func (x *AppPackageBinary) GetSizeByte() int64

func (*AppPackageBinary) ProtoMessage

func (*AppPackageBinary) ProtoMessage()

func (*AppPackageBinary) ProtoReflect

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

func (*AppPackageBinary) Reset

func (x *AppPackageBinary) Reset()

func (*AppPackageBinary) String

func (x *AppPackageBinary) String() string

type AppPackageSource

type AppPackageSource int32
const (
	AppPackageSource_APP_PACKAGE_SOURCE_UNSPECIFIED AppPackageSource = 0
	AppPackageSource_APP_PACKAGE_SOURCE_MANUAL      AppPackageSource = 1
	AppPackageSource_APP_PACKAGE_SOURCE_SENTINEL    AppPackageSource = 2
)

func (AppPackageSource) Descriptor

func (AppPackageSource) Enum

func (AppPackageSource) EnumDescriptor deprecated

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

Deprecated: Use AppPackageSource.Descriptor instead.

func (AppPackageSource) Number

func (AppPackageSource) String

func (x AppPackageSource) String() string

func (AppPackageSource) Type

type AppSource

type AppSource int32
const (
	AppSource_APP_SOURCE_UNSPECIFIED AppSource = 0
	AppSource_APP_SOURCE_INTERNAL    AppSource = 1
	AppSource_APP_SOURCE_STEAM       AppSource = 2
)

func (AppSource) Descriptor

func (AppSource) Descriptor() protoreflect.EnumDescriptor

func (AppSource) Enum

func (x AppSource) Enum() *AppSource

func (AppSource) EnumDescriptor deprecated

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

Deprecated: Use AppSource.Descriptor instead.

func (AppSource) Number

func (x AppSource) Number() protoreflect.EnumNumber

func (AppSource) String

func (x AppSource) String() string

func (AppSource) Type

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"`
	// 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) 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  int32 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"`
	PageSize int32 `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() int32

func (*PagingRequest) GetPageSize

func (x *PagingRequest) GetPageSize() int32

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 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

Jump to

Keyboard shortcuts

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