Documentation ¶
Index ¶
- Variables
- func ProvideRemoteSetup(handler *Handler) func(server *grpc.Server)
- type Handler
- func (h *Handler) Crop(ctx context.Context, request *proto.ContentRequest) (*proto.Content, error)
- func (h *Handler) Original(ctx context.Context, request *proto.ContentRequest) (*proto.Content, error)
- func (h *Handler) ProvideAccessRoles() meta.AccessConfig
- func (h *Handler) ProvideAuthKey() *rsa.PublicKey
- func (h *Handler) Resize(ctx context.Context, request *proto.ContentRequest) (*proto.Content, error)
- func (h *Handler) StreamContent(request *proto.ContentRequest, server proto.ContentService_StreamContentServer) error
- func (h *Handler) Thumbnail(ctx context.Context, request *proto.ContentRequest) (*proto.Content, error)
- func (h *Handler) Upload(server proto.ContentService_UploadServer) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(service service.ContentService, auth core.AuthService) *Handler
func (*Handler) Crop ¶
func (*Handler) Original ¶
func (*Handler) ProvideAccessRoles ¶
func (h *Handler) ProvideAccessRoles() meta.AccessConfig
func (*Handler) Resize ¶
func (*Handler) StreamContent ¶
func (h *Handler) StreamContent(request *proto.ContentRequest, server proto.ContentService_StreamContentServer) error
func (*Handler) Thumbnail ¶
func (*Handler) Upload ¶
func (h *Handler) Upload(server proto.ContentService_UploadServer) error
Click to show internal directories.
Click to hide internal directories.