Documentation ¶
Index ¶
- Variables
- func RegisterThumbnailServiceHandler(s server.Server, hdlr ThumbnailServiceHandler, opts ...server.HandlerOption) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetAuthorization() string
- func (m *GetRequest) GetEtag() string
- func (m *GetRequest) GetFilepath() string
- func (m *GetRequest) GetFiletype() GetRequest_FileType
- func (m *GetRequest) GetHeight() int32
- func (m *GetRequest) GetWidth() int32
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetRequest_FileType
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetMimetype() string
- func (m *GetResponse) GetThumbnail() []byte
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) String() string
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type ThumbnailService
- type ThumbnailServiceHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var GetRequest_FileType_name = map[int32]string{
0: "PNG",
1: "JPG",
}
View Source
var GetRequest_FileType_value = map[string]int32{
"PNG": 0,
"JPG": 1,
}
Functions ¶
func RegisterThumbnailServiceHandler ¶
func RegisterThumbnailServiceHandler(s server.Server, hdlr ThumbnailServiceHandler, opts ...server.HandlerOption) error
Types ¶
type GetRequest ¶
type GetRequest struct { Filepath string `protobuf:"bytes,1,opt,name=filepath,proto3" json:"filepath,omitempty"` Filetype GetRequest_FileType `` /* 127-byte string literal not displayed */ Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` Width int32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"` Height int32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` Authorization string `protobuf:"bytes,6,opt,name=authorization,proto3" json:"authorization,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetAuthorization ¶
func (m *GetRequest) GetAuthorization() string
func (*GetRequest) GetEtag ¶
func (m *GetRequest) GetEtag() string
func (*GetRequest) GetFilepath ¶
func (m *GetRequest) GetFilepath() string
func (*GetRequest) GetFiletype ¶
func (m *GetRequest) GetFiletype() GetRequest_FileType
func (*GetRequest) GetHeight ¶
func (m *GetRequest) GetHeight() int32
func (*GetRequest) GetWidth ¶
func (m *GetRequest) GetWidth() int32
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetRequest_FileType ¶
type GetRequest_FileType int32
const ( GetRequest_PNG GetRequest_FileType = 0 GetRequest_JPG GetRequest_FileType = 1 )
func (GetRequest_FileType) EnumDescriptor ¶
func (GetRequest_FileType) EnumDescriptor() ([]byte, []int)
func (GetRequest_FileType) String ¶
func (x GetRequest_FileType) String() string
type GetResponse ¶
type GetResponse struct { Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` Mimetype string `protobuf:"bytes,2,opt,name=mimetype,proto3" json:"mimetype,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetMimetype ¶
func (m *GetResponse) GetMimetype() string
func (*GetResponse) GetThumbnail ¶
func (m *GetResponse) GetThumbnail() []byte
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) String ¶
func (m *GetResponse) String() string
func (*GetResponse) XXX_DiscardUnknown ¶
func (m *GetResponse) XXX_DiscardUnknown()
func (*GetResponse) XXX_Marshal ¶
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetResponse) XXX_Merge ¶
func (m *GetResponse) XXX_Merge(src proto.Message)
func (*GetResponse) XXX_Size ¶
func (m *GetResponse) XXX_Size() int
func (*GetResponse) XXX_Unmarshal ¶
func (m *GetResponse) XXX_Unmarshal(b []byte) error
type ThumbnailService ¶
type ThumbnailService interface {
GetThumbnail(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*GetResponse, error)
}
func NewThumbnailService ¶
func NewThumbnailService(name string, c client.Client) ThumbnailService
type ThumbnailServiceHandler ¶
type ThumbnailServiceHandler interface {
GetThumbnail(context.Context, *GetRequest, *GetResponse) error
}
Click to show internal directories.
Click to hide internal directories.