Documentation
¶
Index ¶
- Variables
- func NewThumbnailServiceEndpoints() []*api.Endpoint
- func RegisterThumbnailServiceHandler(s server.Server, hdlr ThumbnailServiceHandler, opts ...server.HandlerOption) error
- type GetThumbnailRequest
- func (*GetThumbnailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetThumbnailRequest) GetCs3Source() *v0.CS3Source
- func (x *GetThumbnailRequest) GetFilepath() string
- func (x *GetThumbnailRequest) GetHeight() int32
- func (x *GetThumbnailRequest) GetProcessor() string
- func (m *GetThumbnailRequest) GetSource() isGetThumbnailRequest_Source
- func (x *GetThumbnailRequest) GetThumbnailType() v0.ThumbnailType
- func (x *GetThumbnailRequest) GetWebdavSource() *v0.WebdavSource
- func (x *GetThumbnailRequest) GetWidth() int32
- func (*GetThumbnailRequest) ProtoMessage()
- func (x *GetThumbnailRequest) ProtoReflect() protoreflect.Message
- func (x *GetThumbnailRequest) Reset()
- func (x *GetThumbnailRequest) String() string
- type GetThumbnailRequest_Cs3Source
- type GetThumbnailRequest_WebdavSource
- type GetThumbnailResponse
- func (*GetThumbnailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetThumbnailResponse) GetDataEndpoint() string
- func (x *GetThumbnailResponse) GetMimetype() string
- func (x *GetThumbnailResponse) GetTransferToken() string
- func (*GetThumbnailResponse) ProtoMessage()
- func (x *GetThumbnailResponse) ProtoReflect() protoreflect.Message
- func (x *GetThumbnailResponse) Reset()
- func (x *GetThumbnailResponse) String() string
- type ThumbnailService
- type ThumbnailServiceHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var File_opencloud_services_thumbnails_v0_thumbnails_proto protoreflect.FileDescriptor
Functions ¶
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_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
}
Click to show internal directories.
Click to hide internal directories.