gRPC

package
v0.0.0-...-4a3359c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrQueryInvalid = errors.New("content query invalid")
)

Functions

func ProvideRemoteSetup

func ProvideRemoteSetup(handler *Handler) func(server *grpc.Server)

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 (h *Handler) Crop(ctx context.Context, request *proto.ContentRequest) (*proto.Content, error)

func (*Handler) Original

func (h *Handler) Original(ctx context.Context, request *proto.ContentRequest) (*proto.Content, error)

func (*Handler) ProvideAccessRoles

func (h *Handler) ProvideAccessRoles() meta.AccessConfig

func (*Handler) ProvideAuthKey

func (h *Handler) ProvideAuthKey() *rsa.PublicKey

func (*Handler) Resize

func (h *Handler) Resize(ctx context.Context, request *proto.ContentRequest) (*proto.Content, error)

func (*Handler) StreamContent

func (h *Handler) StreamContent(request *proto.ContentRequest, server proto.ContentService_StreamContentServer) error

func (*Handler) Thumbnail

func (h *Handler) Thumbnail(ctx context.Context, request *proto.ContentRequest) (*proto.Content, error)

func (*Handler) Upload

func (h *Handler) Upload(server proto.ContentService_UploadServer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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