mediaproxyv1

package
v0.0.0-...-a9cc36f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_mediaproxy_v1_mediaproxy_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CanInstantViewRequest

type CanInstantViewRequest struct {

	// URL(s) to query if server can instant view the website.
	Url []string `protobuf:"bytes,1,rep,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

Used in the `CanInstantView` endpoint.

func (*CanInstantViewRequest) Descriptor deprecated

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

Deprecated: Use CanInstantViewRequest.ProtoReflect.Descriptor instead.

func (*CanInstantViewRequest) GetUrl

func (x *CanInstantViewRequest) GetUrl() []string

func (*CanInstantViewRequest) MarshalToSizedBufferVT

func (m *CanInstantViewRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CanInstantViewRequest) MarshalToVT

func (m *CanInstantViewRequest) MarshalToVT(dAtA []byte) (int, error)

func (*CanInstantViewRequest) MarshalVT

func (m *CanInstantViewRequest) MarshalVT() (dAtA []byte, err error)

func (*CanInstantViewRequest) ProtoMessage

func (*CanInstantViewRequest) ProtoMessage()

func (*CanInstantViewRequest) ProtoReflect

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

func (*CanInstantViewRequest) Reset

func (x *CanInstantViewRequest) Reset()

func (*CanInstantViewRequest) SizeVT

func (m *CanInstantViewRequest) SizeVT() (n int)

func (*CanInstantViewRequest) String

func (x *CanInstantViewRequest) String() string

func (*CanInstantViewRequest) UnmarshalVT

func (m *CanInstantViewRequest) UnmarshalVT(dAtA []byte) error

type CanInstantViewResponse

type CanInstantViewResponse struct {

	// Whether the server generate an instant view for the URL(s) queried.
	CanInstantView map[string]bool `` /* 194-byte string literal not displayed */
	// contains filtered or unexported fields
}

Used in the `CanInstantView` endpoint.

func (*CanInstantViewResponse) Descriptor deprecated

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

Deprecated: Use CanInstantViewResponse.ProtoReflect.Descriptor instead.

func (*CanInstantViewResponse) GetCanInstantView

func (x *CanInstantViewResponse) GetCanInstantView() map[string]bool

func (*CanInstantViewResponse) MarshalToSizedBufferVT

func (m *CanInstantViewResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CanInstantViewResponse) MarshalToVT

func (m *CanInstantViewResponse) MarshalToVT(dAtA []byte) (int, error)

func (*CanInstantViewResponse) MarshalVT

func (m *CanInstantViewResponse) MarshalVT() (dAtA []byte, err error)

func (*CanInstantViewResponse) ProtoMessage

func (*CanInstantViewResponse) ProtoMessage()

func (*CanInstantViewResponse) ProtoReflect

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

func (*CanInstantViewResponse) Reset

func (x *CanInstantViewResponse) Reset()

func (*CanInstantViewResponse) SizeVT

func (m *CanInstantViewResponse) SizeVT() (n int)

func (*CanInstantViewResponse) String

func (x *CanInstantViewResponse) String() string

func (*CanInstantViewResponse) UnmarshalVT

func (m *CanInstantViewResponse) UnmarshalVT(dAtA []byte) error

type FetchLinkMetadataRequest

type FetchLinkMetadataRequest struct {

	// URL to fetch metadata from.
	Url []string `protobuf:"bytes,1,rep,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

Used in the `FetchLinkMetadata` endpoint.

func (*FetchLinkMetadataRequest) Descriptor deprecated

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

Deprecated: Use FetchLinkMetadataRequest.ProtoReflect.Descriptor instead.

func (*FetchLinkMetadataRequest) GetUrl

func (x *FetchLinkMetadataRequest) GetUrl() []string

func (*FetchLinkMetadataRequest) MarshalToSizedBufferVT

func (m *FetchLinkMetadataRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataRequest) MarshalToVT

func (m *FetchLinkMetadataRequest) MarshalToVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataRequest) MarshalVT

func (m *FetchLinkMetadataRequest) MarshalVT() (dAtA []byte, err error)

func (*FetchLinkMetadataRequest) ProtoMessage

func (*FetchLinkMetadataRequest) ProtoMessage()

func (*FetchLinkMetadataRequest) ProtoReflect

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

func (*FetchLinkMetadataRequest) Reset

func (x *FetchLinkMetadataRequest) Reset()

func (*FetchLinkMetadataRequest) SizeVT

func (m *FetchLinkMetadataRequest) SizeVT() (n int)

func (*FetchLinkMetadataRequest) String

func (x *FetchLinkMetadataRequest) String() string

func (*FetchLinkMetadataRequest) UnmarshalVT

func (m *FetchLinkMetadataRequest) UnmarshalVT(dAtA []byte) error

type FetchLinkMetadataResponse

type FetchLinkMetadataResponse struct {

	// Fetched metadata for the requested URL(s).
	Metadata map[string]*FetchLinkMetadataResponse_Metadata `` /* 157-byte string literal not displayed */
	// URL(s) that errored out while trying to fetch metadata for them.
	Errors map[string]*FetchLinkMetadataResponse_Error `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

Used in the `FetchLinkMetadata` endpoint.

func (*FetchLinkMetadataResponse) Descriptor deprecated

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

Deprecated: Use FetchLinkMetadataResponse.ProtoReflect.Descriptor instead.

func (*FetchLinkMetadataResponse) GetErrors

func (*FetchLinkMetadataResponse) GetMetadata

func (*FetchLinkMetadataResponse) MarshalToSizedBufferVT

func (m *FetchLinkMetadataResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataResponse) MarshalToVT

func (m *FetchLinkMetadataResponse) MarshalToVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataResponse) MarshalVT

func (m *FetchLinkMetadataResponse) MarshalVT() (dAtA []byte, err error)

func (*FetchLinkMetadataResponse) ProtoMessage

func (*FetchLinkMetadataResponse) ProtoMessage()

func (*FetchLinkMetadataResponse) ProtoReflect

func (*FetchLinkMetadataResponse) Reset

func (x *FetchLinkMetadataResponse) Reset()

func (*FetchLinkMetadataResponse) SizeVT

func (m *FetchLinkMetadataResponse) SizeVT() (n int)

func (*FetchLinkMetadataResponse) String

func (x *FetchLinkMetadataResponse) String() string

func (*FetchLinkMetadataResponse) UnmarshalVT

func (m *FetchLinkMetadataResponse) UnmarshalVT(dAtA []byte) error

type FetchLinkMetadataResponse_Error

type FetchLinkMetadataResponse_Error struct {

	// Error status (usually HTTP, eg. `500 Internal Server Error`).
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// Error message, if the requested URL's server has provided one.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Error data for a link.

func (*FetchLinkMetadataResponse_Error) Descriptor deprecated

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

Deprecated: Use FetchLinkMetadataResponse_Error.ProtoReflect.Descriptor instead.

func (*FetchLinkMetadataResponse_Error) GetMessage

func (x *FetchLinkMetadataResponse_Error) GetMessage() string

func (*FetchLinkMetadataResponse_Error) GetStatus

func (x *FetchLinkMetadataResponse_Error) GetStatus() string

func (*FetchLinkMetadataResponse_Error) MarshalToSizedBufferVT

func (m *FetchLinkMetadataResponse_Error) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataResponse_Error) MarshalToVT

func (m *FetchLinkMetadataResponse_Error) MarshalToVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataResponse_Error) MarshalVT

func (m *FetchLinkMetadataResponse_Error) MarshalVT() (dAtA []byte, err error)

func (*FetchLinkMetadataResponse_Error) ProtoMessage

func (*FetchLinkMetadataResponse_Error) ProtoMessage()

func (*FetchLinkMetadataResponse_Error) ProtoReflect

func (*FetchLinkMetadataResponse_Error) Reset

func (*FetchLinkMetadataResponse_Error) SizeVT

func (m *FetchLinkMetadataResponse_Error) SizeVT() (n int)

func (*FetchLinkMetadataResponse_Error) String

func (*FetchLinkMetadataResponse_Error) UnmarshalVT

func (m *FetchLinkMetadataResponse_Error) UnmarshalVT(dAtA []byte) error

type FetchLinkMetadataResponse_Metadata

type FetchLinkMetadataResponse_Metadata struct {

	// Data of the metadata.
	//
	// Types that are assignable to Data:
	//	*FetchLinkMetadataResponse_Metadata_IsSite
	//	*FetchLinkMetadataResponse_Metadata_IsMedia
	Data isFetchLinkMetadataResponse_Metadata_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

Fetched metadata for a link.

func (*FetchLinkMetadataResponse_Metadata) Descriptor deprecated

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

Deprecated: Use FetchLinkMetadataResponse_Metadata.ProtoReflect.Descriptor instead.

func (*FetchLinkMetadataResponse_Metadata) GetData

func (m *FetchLinkMetadataResponse_Metadata) GetData() isFetchLinkMetadataResponse_Metadata_Data

func (*FetchLinkMetadataResponse_Metadata) GetIsMedia

func (*FetchLinkMetadataResponse_Metadata) GetIsSite

func (*FetchLinkMetadataResponse_Metadata) MarshalToSizedBufferVT

func (m *FetchLinkMetadataResponse_Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataResponse_Metadata) MarshalToVT

func (m *FetchLinkMetadataResponse_Metadata) MarshalToVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataResponse_Metadata) MarshalVT

func (m *FetchLinkMetadataResponse_Metadata) MarshalVT() (dAtA []byte, err error)

func (*FetchLinkMetadataResponse_Metadata) ProtoMessage

func (*FetchLinkMetadataResponse_Metadata) ProtoMessage()

func (*FetchLinkMetadataResponse_Metadata) ProtoReflect

func (*FetchLinkMetadataResponse_Metadata) Reset

func (*FetchLinkMetadataResponse_Metadata) SizeVT

func (m *FetchLinkMetadataResponse_Metadata) SizeVT() (n int)

func (*FetchLinkMetadataResponse_Metadata) String

func (*FetchLinkMetadataResponse_Metadata) UnmarshalVT

func (m *FetchLinkMetadataResponse_Metadata) UnmarshalVT(dAtA []byte) error

type FetchLinkMetadataResponse_Metadata_IsMedia

type FetchLinkMetadataResponse_Metadata_IsMedia struct {
	// Media metadata for the URL.
	IsMedia *MediaMetadata `protobuf:"bytes,2,opt,name=is_media,json=isMedia,proto3,oneof"`
}

func (*FetchLinkMetadataResponse_Metadata_IsMedia) MarshalToSizedBufferVT

func (m *FetchLinkMetadataResponse_Metadata_IsMedia) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataResponse_Metadata_IsMedia) MarshalToVT

func (m *FetchLinkMetadataResponse_Metadata_IsMedia) MarshalToVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataResponse_Metadata_IsMedia) SizeVT

type FetchLinkMetadataResponse_Metadata_IsSite

type FetchLinkMetadataResponse_Metadata_IsSite struct {
	// Site metadata for the URL.
	IsSite *SiteMetadata `protobuf:"bytes,1,opt,name=is_site,json=isSite,proto3,oneof"`
}

func (*FetchLinkMetadataResponse_Metadata_IsSite) MarshalToSizedBufferVT

func (m *FetchLinkMetadataResponse_Metadata_IsSite) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataResponse_Metadata_IsSite) MarshalToVT

func (m *FetchLinkMetadataResponse_Metadata_IsSite) MarshalToVT(dAtA []byte) (int, error)

func (*FetchLinkMetadataResponse_Metadata_IsSite) SizeVT

type InstantViewRequest

type InstantViewRequest struct {

	// URL to get instant view for.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

Used in the `InstantView` endpoint.

func (*InstantViewRequest) Descriptor deprecated

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

Deprecated: Use InstantViewRequest.ProtoReflect.Descriptor instead.

func (*InstantViewRequest) GetUrl

func (x *InstantViewRequest) GetUrl() string

func (*InstantViewRequest) MarshalToSizedBufferVT

func (m *InstantViewRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*InstantViewRequest) MarshalToVT

func (m *InstantViewRequest) MarshalToVT(dAtA []byte) (int, error)

func (*InstantViewRequest) MarshalVT

func (m *InstantViewRequest) MarshalVT() (dAtA []byte, err error)

func (*InstantViewRequest) ProtoMessage

func (*InstantViewRequest) ProtoMessage()

func (*InstantViewRequest) ProtoReflect

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

func (*InstantViewRequest) Reset

func (x *InstantViewRequest) Reset()

func (*InstantViewRequest) SizeVT

func (m *InstantViewRequest) SizeVT() (n int)

func (*InstantViewRequest) String

func (x *InstantViewRequest) String() string

func (*InstantViewRequest) UnmarshalVT

func (m *InstantViewRequest) UnmarshalVT(dAtA []byte) error

type InstantViewResponse

type InstantViewResponse struct {

	// Site metadata for the URL.
	Metadata *SiteMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Instant view content.
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// Whether the instant view is valid.
	IsValid bool `protobuf:"varint,3,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"`
	// contains filtered or unexported fields
}

Used in the `InstantView` endpoint.

func (*InstantViewResponse) Descriptor deprecated

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

Deprecated: Use InstantViewResponse.ProtoReflect.Descriptor instead.

func (*InstantViewResponse) GetContent

func (x *InstantViewResponse) GetContent() string

func (*InstantViewResponse) GetIsValid

func (x *InstantViewResponse) GetIsValid() bool

func (*InstantViewResponse) GetMetadata

func (x *InstantViewResponse) GetMetadata() *SiteMetadata

func (*InstantViewResponse) MarshalToSizedBufferVT

func (m *InstantViewResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*InstantViewResponse) MarshalToVT

func (m *InstantViewResponse) MarshalToVT(dAtA []byte) (int, error)

func (*InstantViewResponse) MarshalVT

func (m *InstantViewResponse) MarshalVT() (dAtA []byte, err error)

func (*InstantViewResponse) ProtoMessage

func (*InstantViewResponse) ProtoMessage()

func (*InstantViewResponse) ProtoReflect

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

func (*InstantViewResponse) Reset

func (x *InstantViewResponse) Reset()

func (*InstantViewResponse) SizeVT

func (m *InstantViewResponse) SizeVT() (n int)

func (*InstantViewResponse) String

func (x *InstantViewResponse) String() string

func (*InstantViewResponse) UnmarshalVT

func (m *InstantViewResponse) UnmarshalVT(dAtA []byte) error

type MediaMetadata

type MediaMetadata struct {

	// Mimetype of the media.
	Mimetype string `protobuf:"bytes,1,opt,name=mimetype,proto3" json:"mimetype,omitempty"`
	// Filename of the media.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// File ID of the media.
	Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// Sıze of the media.
	//
	// This should (usually) be the size taken from the `Content-Length` header
	// (for HTTP requests).
	// If this is not included, then it means the size could not be determined.
	Size *uint32 `protobuf:"varint,4,opt,name=size,proto3,oneof" json:"size,omitempty"`
	// Extra information specific to types of media.
	//
	// Types that are assignable to Info:
	//	*MediaMetadata_Image
	Info isMediaMetadata_Info `protobuf_oneof:"info"`
	// contains filtered or unexported fields
}

Object represeting the metadata of a media.

func (*MediaMetadata) Descriptor deprecated

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

Deprecated: Use MediaMetadata.ProtoReflect.Descriptor instead.

func (*MediaMetadata) GetId

func (x *MediaMetadata) GetId() string

func (*MediaMetadata) GetImage

func (x *MediaMetadata) GetImage() *MediaMetadata_ImageInfo

func (*MediaMetadata) GetInfo

func (m *MediaMetadata) GetInfo() isMediaMetadata_Info

func (*MediaMetadata) GetMimetype

func (x *MediaMetadata) GetMimetype() string

func (*MediaMetadata) GetName

func (x *MediaMetadata) GetName() string

func (*MediaMetadata) GetSize

func (x *MediaMetadata) GetSize() uint32

func (*MediaMetadata) MarshalToSizedBufferVT

func (m *MediaMetadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*MediaMetadata) MarshalToVT

func (m *MediaMetadata) MarshalToVT(dAtA []byte) (int, error)

func (*MediaMetadata) MarshalVT

func (m *MediaMetadata) MarshalVT() (dAtA []byte, err error)

func (*MediaMetadata) ProtoMessage

func (*MediaMetadata) ProtoMessage()

func (*MediaMetadata) ProtoReflect

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

func (*MediaMetadata) Reset

func (x *MediaMetadata) Reset()

func (*MediaMetadata) SizeVT

func (m *MediaMetadata) SizeVT() (n int)

func (*MediaMetadata) String

func (x *MediaMetadata) String() string

func (*MediaMetadata) UnmarshalVT

func (m *MediaMetadata) UnmarshalVT(dAtA []byte) error

type MediaMetadata_Image

type MediaMetadata_Image struct {
	// Information for an image media.
	Image *MediaMetadata_ImageInfo `protobuf:"bytes,5,opt,name=image,proto3,oneof"`
}

func (*MediaMetadata_Image) MarshalToSizedBufferVT

func (m *MediaMetadata_Image) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*MediaMetadata_Image) MarshalToVT

func (m *MediaMetadata_Image) MarshalToVT(dAtA []byte) (int, error)

func (*MediaMetadata_Image) SizeVT

func (m *MediaMetadata_Image) SizeVT() (n int)

type MediaMetadata_ImageInfo

type MediaMetadata_ImageInfo struct {

	// Width of the image, in pixels.
	Width uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	// Height of the image, in pixels.
	Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

Information pertaining to an image.

func (*MediaMetadata_ImageInfo) Descriptor deprecated

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

Deprecated: Use MediaMetadata_ImageInfo.ProtoReflect.Descriptor instead.

func (*MediaMetadata_ImageInfo) GetHeight

func (x *MediaMetadata_ImageInfo) GetHeight() uint32

func (*MediaMetadata_ImageInfo) GetWidth

func (x *MediaMetadata_ImageInfo) GetWidth() uint32

func (*MediaMetadata_ImageInfo) MarshalToSizedBufferVT

func (m *MediaMetadata_ImageInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*MediaMetadata_ImageInfo) MarshalToVT

func (m *MediaMetadata_ImageInfo) MarshalToVT(dAtA []byte) (int, error)

func (*MediaMetadata_ImageInfo) MarshalVT

func (m *MediaMetadata_ImageInfo) MarshalVT() (dAtA []byte, err error)

func (*MediaMetadata_ImageInfo) ProtoMessage

func (*MediaMetadata_ImageInfo) ProtoMessage()

func (*MediaMetadata_ImageInfo) ProtoReflect

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

func (*MediaMetadata_ImageInfo) Reset

func (x *MediaMetadata_ImageInfo) Reset()

func (*MediaMetadata_ImageInfo) SizeVT

func (m *MediaMetadata_ImageInfo) SizeVT() (n int)

func (*MediaMetadata_ImageInfo) String

func (x *MediaMetadata_ImageInfo) String() string

func (*MediaMetadata_ImageInfo) UnmarshalVT

func (m *MediaMetadata_ImageInfo) UnmarshalVT(dAtA []byte) error

type MediaProxyService

type MediaProxyService[T context.Context] interface {
	FetchLinkMetadata(T, *FetchLinkMetadataRequest) (*FetchLinkMetadataResponse, error)
	InstantView(T, *InstantViewRequest) (*InstantViewResponse, error)
	CanInstantView(T, *CanInstantViewRequest) (*CanInstantViewResponse, error)
}

type MediaProxyServiceHandler

type MediaProxyServiceHandler[T context.Context] struct {
	Impl MediaProxyService[T]
}

func (*MediaProxyServiceHandler[T]) Routes

func (*MediaProxyServiceHandler[T]) StreamRoutes

func (h *MediaProxyServiceHandler[T]) StreamRoutes() map[string]goserver.StreamMethodData[T]

type SiteMetadata

type SiteMetadata struct {

	// Title of the website.
	SiteTitle string `protobuf:"bytes,1,opt,name=site_title,json=siteTitle,proto3" json:"site_title,omitempty"`
	// Page title of the website page.
	PageTitle string `protobuf:"bytes,2,opt,name=page_title,json=pageTitle,proto3" json:"page_title,omitempty"`
	// Kind of the website.
	Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
	// Description of the website page.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// URL of the website.
	Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
	// A thumbnail image for the website.
	Thumbnail []*SiteMetadata_ThumbnailImage `protobuf:"bytes,6,rep,name=thumbnail,proto3" json:"thumbnail,omitempty"`
	// contains filtered or unexported fields
}

Object representing the metadata of a website.

func (*SiteMetadata) Descriptor deprecated

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

Deprecated: Use SiteMetadata.ProtoReflect.Descriptor instead.

func (*SiteMetadata) GetDescription

func (x *SiteMetadata) GetDescription() string

func (*SiteMetadata) GetKind

func (x *SiteMetadata) GetKind() string

func (*SiteMetadata) GetPageTitle

func (x *SiteMetadata) GetPageTitle() string

func (*SiteMetadata) GetSiteTitle

func (x *SiteMetadata) GetSiteTitle() string

func (*SiteMetadata) GetThumbnail

func (x *SiteMetadata) GetThumbnail() []*SiteMetadata_ThumbnailImage

func (*SiteMetadata) GetUrl

func (x *SiteMetadata) GetUrl() string

func (*SiteMetadata) MarshalToSizedBufferVT

func (m *SiteMetadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SiteMetadata) MarshalToVT

func (m *SiteMetadata) MarshalToVT(dAtA []byte) (int, error)

func (*SiteMetadata) MarshalVT

func (m *SiteMetadata) MarshalVT() (dAtA []byte, err error)

func (*SiteMetadata) ProtoMessage

func (*SiteMetadata) ProtoMessage()

func (*SiteMetadata) ProtoReflect

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

func (*SiteMetadata) Reset

func (x *SiteMetadata) Reset()

func (*SiteMetadata) SizeVT

func (m *SiteMetadata) SizeVT() (n int)

func (*SiteMetadata) String

func (x *SiteMetadata) String() string

func (*SiteMetadata) UnmarshalVT

func (m *SiteMetadata) UnmarshalVT(dAtA []byte) error

type SiteMetadata_ThumbnailImage

type SiteMetadata_ThumbnailImage struct {

	// URL of the thumbnail.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// Width of the image, in pixels.
	Width uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
	// Height of the image, in pixels.
	Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

Information pertaining to a thumbnail image.

func (*SiteMetadata_ThumbnailImage) Descriptor deprecated

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

Deprecated: Use SiteMetadata_ThumbnailImage.ProtoReflect.Descriptor instead.

func (*SiteMetadata_ThumbnailImage) GetHeight

func (x *SiteMetadata_ThumbnailImage) GetHeight() uint32

func (*SiteMetadata_ThumbnailImage) GetUrl

func (x *SiteMetadata_ThumbnailImage) GetUrl() string

func (*SiteMetadata_ThumbnailImage) GetWidth

func (x *SiteMetadata_ThumbnailImage) GetWidth() uint32

func (*SiteMetadata_ThumbnailImage) MarshalToSizedBufferVT

func (m *SiteMetadata_ThumbnailImage) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SiteMetadata_ThumbnailImage) MarshalToVT

func (m *SiteMetadata_ThumbnailImage) MarshalToVT(dAtA []byte) (int, error)

func (*SiteMetadata_ThumbnailImage) MarshalVT

func (m *SiteMetadata_ThumbnailImage) MarshalVT() (dAtA []byte, err error)

func (*SiteMetadata_ThumbnailImage) ProtoMessage

func (*SiteMetadata_ThumbnailImage) ProtoMessage()

func (*SiteMetadata_ThumbnailImage) ProtoReflect

func (*SiteMetadata_ThumbnailImage) Reset

func (x *SiteMetadata_ThumbnailImage) Reset()

func (*SiteMetadata_ThumbnailImage) SizeVT

func (m *SiteMetadata_ThumbnailImage) SizeVT() (n int)

func (*SiteMetadata_ThumbnailImage) String

func (x *SiteMetadata_ThumbnailImage) String() string

func (*SiteMetadata_ThumbnailImage) UnmarshalVT

func (m *SiteMetadata_ThumbnailImage) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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