v0

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_opencloud_services_thumbnails_v0_thumbnails_proto protoreflect.FileDescriptor

Functions

func NewThumbnailServiceEndpoints

func NewThumbnailServiceEndpoints() []*api.Endpoint

func RegisterThumbnailServiceHandler

func RegisterThumbnailServiceHandler(s server.Server, hdlr ThumbnailServiceHandler, opts ...server.HandlerOption) error

Types

type GetThumbnailRequest

type GetThumbnailRequest struct {

	// The path to the source image
	Filepath string `protobuf:"bytes,1,opt,name=filepath,proto3" json:"filepath,omitempty"`
	// The type to which the thumbnail should get encoded to.
	ThumbnailType v0.ThumbnailType `` /* 153-byte string literal not displayed */
	// The width of the thumbnail
	Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	// The height of the thumbnail
	Height int32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	// Indicates which image processor to use
	Processor string `protobuf:"bytes,5,opt,name=processor,proto3" json:"processor,omitempty"`
	// Types that are assignable to Source:
	//
	//	*GetThumbnailRequest_WebdavSource
	//	*GetThumbnailRequest_Cs3Source
	Source isGetThumbnailRequest_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

A request to retrieve a thumbnail

func (*GetThumbnailRequest) Descriptor deprecated

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

Deprecated: Use GetThumbnailRequest.ProtoReflect.Descriptor instead.

func (*GetThumbnailRequest) GetCs3Source

func (x *GetThumbnailRequest) GetCs3Source() *v0.CS3Source

func (*GetThumbnailRequest) GetFilepath

func (x *GetThumbnailRequest) GetFilepath() string

func (*GetThumbnailRequest) GetHeight

func (x *GetThumbnailRequest) GetHeight() int32

func (*GetThumbnailRequest) GetProcessor

func (x *GetThumbnailRequest) GetProcessor() string

func (*GetThumbnailRequest) GetSource

func (m *GetThumbnailRequest) GetSource() isGetThumbnailRequest_Source

func (*GetThumbnailRequest) GetThumbnailType

func (x *GetThumbnailRequest) GetThumbnailType() v0.ThumbnailType

func (*GetThumbnailRequest) GetWebdavSource

func (x *GetThumbnailRequest) GetWebdavSource() *v0.WebdavSource

func (*GetThumbnailRequest) GetWidth

func (x *GetThumbnailRequest) GetWidth() int32

func (*GetThumbnailRequest) ProtoMessage

func (*GetThumbnailRequest) ProtoMessage()

func (*GetThumbnailRequest) ProtoReflect

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

func (*GetThumbnailRequest) Reset

func (x *GetThumbnailRequest) Reset()

func (*GetThumbnailRequest) String

func (x *GetThumbnailRequest) String() string

type GetThumbnailRequest_Cs3Source

type GetThumbnailRequest_Cs3Source struct {
	Cs3Source *v0.CS3Source `protobuf:"bytes,7,opt,name=cs3_source,json=cs3Source,proto3,oneof"`
}

type GetThumbnailRequest_WebdavSource

type GetThumbnailRequest_WebdavSource struct {
	WebdavSource *v0.WebdavSource `protobuf:"bytes,6,opt,name=webdav_source,json=webdavSource,proto3,oneof"`
}

type GetThumbnailResponse

type GetThumbnailResponse struct {

	// The endpoint where the thumbnail can be downloaded.
	DataEndpoint string `protobuf:"bytes,1,opt,name=data_endpoint,json=dataEndpoint,proto3" json:"data_endpoint,omitempty"`
	// The transfer token to be able to download the thumbnail.
	TransferToken string `protobuf:"bytes,2,opt,name=transfer_token,json=transferToken,proto3" json:"transfer_token,omitempty"`
	// The mimetype of the thumbnail
	Mimetype string `protobuf:"bytes,3,opt,name=mimetype,proto3" json:"mimetype,omitempty"`
	// contains filtered or unexported fields
}

The service response

func (*GetThumbnailResponse) Descriptor deprecated

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

Deprecated: Use GetThumbnailResponse.ProtoReflect.Descriptor instead.

func (*GetThumbnailResponse) GetDataEndpoint

func (x *GetThumbnailResponse) GetDataEndpoint() string

func (*GetThumbnailResponse) GetMimetype

func (x *GetThumbnailResponse) GetMimetype() string

func (*GetThumbnailResponse) GetTransferToken

func (x *GetThumbnailResponse) GetTransferToken() string

func (*GetThumbnailResponse) ProtoMessage

func (*GetThumbnailResponse) ProtoMessage()

func (*GetThumbnailResponse) ProtoReflect

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

func (*GetThumbnailResponse) Reset

func (x *GetThumbnailResponse) Reset()

func (*GetThumbnailResponse) String

func (x *GetThumbnailResponse) String() string

type ThumbnailService

type ThumbnailService interface {
	// Generates the thumbnail and returns it.
	GetThumbnail(ctx context.Context, in *GetThumbnailRequest, opts ...client.CallOption) (*GetThumbnailResponse, error)
}

func NewThumbnailService

func NewThumbnailService(name string, c client.Client) ThumbnailService

type ThumbnailServiceHandler

type ThumbnailServiceHandler interface {
	// Generates the thumbnail and returns it.
	GetThumbnail(context.Context, *GetThumbnailRequest, *GetThumbnailResponse) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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