Documentation ¶
Index ¶
- Variables
- func NewThumbnailServiceEndpoints() []*api.Endpoint
- func RegisterThumbnailServiceHandler(s server.Server, hdlr ThumbnailServiceHandler, opts ...server.HandlerOption) error
- type CS3Source
- type GetThumbnailRequest
- func (*GetThumbnailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetThumbnailRequest) GetCs3Source() *CS3Source
- func (x *GetThumbnailRequest) GetFilepath() string
- func (x *GetThumbnailRequest) GetHeight() int32
- func (m *GetThumbnailRequest) GetSource() isGetThumbnailRequest_Source
- func (x *GetThumbnailRequest) GetThumbnailType() GetThumbnailRequest_ThumbnailType
- func (x *GetThumbnailRequest) GetWebdavSource() *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_ThumbnailType
- func (GetThumbnailRequest_ThumbnailType) Descriptor() protoreflect.EnumDescriptor
- func (x GetThumbnailRequest_ThumbnailType) Enum() *GetThumbnailRequest_ThumbnailType
- func (GetThumbnailRequest_ThumbnailType) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetThumbnailRequest_ThumbnailType) Number() protoreflect.EnumNumber
- func (x GetThumbnailRequest_ThumbnailType) String() string
- func (GetThumbnailRequest_ThumbnailType) Type() protoreflect.EnumType
- type GetThumbnailRequest_WebdavSource
- type GetThumbnailResponse
- func (*GetThumbnailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetThumbnailResponse) GetMimetype() string
- func (x *GetThumbnailResponse) GetThumbnail() []byte
- func (*GetThumbnailResponse) ProtoMessage()
- func (x *GetThumbnailResponse) ProtoReflect() protoreflect.Message
- func (x *GetThumbnailResponse) Reset()
- func (x *GetThumbnailResponse) String() string
- type ThumbnailService
- type ThumbnailServiceHandler
- type WebdavSource
- func (*WebdavSource) Descriptor() ([]byte, []int)deprecated
- func (x *WebdavSource) GetIsPublicLink() bool
- func (x *WebdavSource) GetPublicLinkToken() string
- func (x *WebdavSource) GetRevaAuthorization() string
- func (x *WebdavSource) GetUrl() string
- func (x *WebdavSource) GetWebdavAuthorization() string
- func (*WebdavSource) ProtoMessage()
- func (x *WebdavSource) ProtoReflect() protoreflect.Message
- func (x *WebdavSource) Reset()
- func (x *WebdavSource) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GetThumbnailRequest_ThumbnailType_name = map[int32]string{ 0: "PNG", 1: "JPG", } GetThumbnailRequest_ThumbnailType_value = map[string]int32{ "PNG": 0, "JPG": 1, } )
Enum value maps for GetThumbnailRequest_ThumbnailType.
View Source
var File_thumbnails_proto protoreflect.FileDescriptor
Functions ¶
func RegisterThumbnailServiceHandler ¶
func RegisterThumbnailServiceHandler(s server.Server, hdlr ThumbnailServiceHandler, opts ...server.HandlerOption) error
Types ¶
type CS3Source ¶
type CS3Source struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Authorization string `protobuf:"bytes,2,opt,name=authorization,proto3" json:"authorization,omitempty"` // contains filtered or unexported fields }
func (*CS3Source) Descriptor
deprecated
func (*CS3Source) GetAuthorization ¶
func (*CS3Source) ProtoMessage ¶
func (*CS3Source) ProtoMessage()
func (*CS3Source) ProtoReflect ¶
func (x *CS3Source) ProtoReflect() protoreflect.Message
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 GetThumbnailRequest_ThumbnailType `` /* 172-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"` // 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() *CS3Source
func (*GetThumbnailRequest) GetFilepath ¶
func (x *GetThumbnailRequest) GetFilepath() string
func (*GetThumbnailRequest) GetHeight ¶
func (x *GetThumbnailRequest) GetHeight() int32
func (*GetThumbnailRequest) GetSource ¶
func (m *GetThumbnailRequest) GetSource() isGetThumbnailRequest_Source
func (*GetThumbnailRequest) GetThumbnailType ¶
func (x *GetThumbnailRequest) GetThumbnailType() GetThumbnailRequest_ThumbnailType
func (*GetThumbnailRequest) GetWebdavSource ¶
func (x *GetThumbnailRequest) GetWebdavSource() *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 *CS3Source `protobuf:"bytes,6,opt,name=cs3_source,json=cs3Source,proto3,oneof"`
}
type GetThumbnailRequest_ThumbnailType ¶
type GetThumbnailRequest_ThumbnailType int32
The file types to which the thumbnail can get encoded to.
const ( GetThumbnailRequest_PNG GetThumbnailRequest_ThumbnailType = 0 // Represents PNG type GetThumbnailRequest_JPG GetThumbnailRequest_ThumbnailType = 1 // Represents JPG type )
func (GetThumbnailRequest_ThumbnailType) Descriptor ¶
func (GetThumbnailRequest_ThumbnailType) Descriptor() protoreflect.EnumDescriptor
func (GetThumbnailRequest_ThumbnailType) Enum ¶
func (x GetThumbnailRequest_ThumbnailType) Enum() *GetThumbnailRequest_ThumbnailType
func (GetThumbnailRequest_ThumbnailType) EnumDescriptor
deprecated
func (GetThumbnailRequest_ThumbnailType) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetThumbnailRequest_ThumbnailType.Descriptor instead.
func (GetThumbnailRequest_ThumbnailType) Number ¶
func (x GetThumbnailRequest_ThumbnailType) Number() protoreflect.EnumNumber
func (GetThumbnailRequest_ThumbnailType) String ¶
func (x GetThumbnailRequest_ThumbnailType) String() string
func (GetThumbnailRequest_ThumbnailType) Type ¶
func (GetThumbnailRequest_ThumbnailType) Type() protoreflect.EnumType
type GetThumbnailRequest_WebdavSource ¶
type GetThumbnailRequest_WebdavSource struct {
WebdavSource *WebdavSource `protobuf:"bytes,5,opt,name=webdav_source,json=webdavSource,proto3,oneof"`
}
type GetThumbnailResponse ¶
type GetThumbnailResponse struct { // The thumbnail as a binary Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` // The mimetype of the thumbnail Mimetype string `protobuf:"bytes,2,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) GetMimetype ¶
func (x *GetThumbnailResponse) GetMimetype() string
func (*GetThumbnailResponse) GetThumbnail ¶
func (x *GetThumbnailResponse) GetThumbnail() []byte
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 }
type WebdavSource ¶
type WebdavSource struct { // REQUIRED. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // REQUIRED. IsPublicLink bool `protobuf:"varint,2,opt,name=is_public_link,json=isPublicLink,proto3" json:"is_public_link,omitempty"` // OPTIONAL. WebdavAuthorization string `protobuf:"bytes,3,opt,name=webdav_authorization,json=webdavAuthorization,proto3" json:"webdav_authorization,omitempty"` // OPTIONAL. RevaAuthorization string `protobuf:"bytes,4,opt,name=reva_authorization,json=revaAuthorization,proto3" json:"reva_authorization,omitempty"` // OPTIONAL. PublicLinkToken string `protobuf:"bytes,5,opt,name=public_link_token,json=publicLinkToken,proto3" json:"public_link_token,omitempty"` // contains filtered or unexported fields }
func (*WebdavSource) Descriptor
deprecated
func (*WebdavSource) Descriptor() ([]byte, []int)
Deprecated: Use WebdavSource.ProtoReflect.Descriptor instead.
func (*WebdavSource) GetIsPublicLink ¶
func (x *WebdavSource) GetIsPublicLink() bool
func (*WebdavSource) GetPublicLinkToken ¶
func (x *WebdavSource) GetPublicLinkToken() string
func (*WebdavSource) GetRevaAuthorization ¶
func (x *WebdavSource) GetRevaAuthorization() string
func (*WebdavSource) GetUrl ¶
func (x *WebdavSource) GetUrl() string
func (*WebdavSource) GetWebdavAuthorization ¶
func (x *WebdavSource) GetWebdavAuthorization() string
func (*WebdavSource) ProtoMessage ¶
func (*WebdavSource) ProtoMessage()
func (*WebdavSource) ProtoReflect ¶
func (x *WebdavSource) ProtoReflect() protoreflect.Message
func (*WebdavSource) Reset ¶
func (x *WebdavSource) Reset()
func (*WebdavSource) String ¶
func (x *WebdavSource) String() string
Click to show internal directories.
Click to hide internal directories.