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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.SneakerProductService, auth core.AuthService) *Handler

func (*Handler) AddProducts

func (h *Handler) AddProducts(ctx context.Context, input *proto.ProductInput) (resp *proto.ProductResponse, err error)

func (*Handler) CountProducts

func (h *Handler) CountProducts(ctx context.Context, filter *proto.ProductFilter) (resp *proto.ProductResponse, err error)

func (*Handler) DeleteProducts

func (h *Handler) DeleteProducts(ctx context.Context, filter *proto.ProductFilter) (resp *proto.ProductResponse, err error)

func (*Handler) EditProducts

func (h *Handler) EditProducts(ctx context.Context, input *proto.ProductInput) (resp *proto.ProductResponse, err error)

func (*Handler) GetProducts

func (h *Handler) GetProducts(ctx context.Context, filter *proto.ProductFilter) (resp *proto.ProductResponse, err error)

func (*Handler) ProvideAccessRoles

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

func (*Handler) ProvideAuthKey

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

func (*Handler) RequestAnalysis

func (h *Handler) RequestAnalysis(ctx context.Context, input *proto.ProductInput) (*proto.AnalysisResponse, error)

func (*Handler) RequestPrediction

func (h *Handler) RequestPrediction(ctx context.Context, request *proto.PredictionRequest) (*proto.ProductResponse, error)

func (*Handler) UploadImages

func (h *Handler) UploadImages(ctx context.Context, input *proto.UploadImageRequest) (*proto.ProductResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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