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

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

func (*Handler) AddOrder

func (h *Handler) AddOrder(ctx context.Context, input *proto.OrderInput) (resp *proto.OrderResponse, err error)

func (*Handler) CountOrders

func (h *Handler) CountOrders(ctx context.Context, filter *proto.OrderFilter) (resp *proto.OrderResponse, err error)

func (*Handler) DeleteOrder

func (h *Handler) DeleteOrder(ctx context.Context, filter *proto.OrderFilter) (resp *proto.OrderResponse, err error)

func (*Handler) EditOrder

func (h *Handler) EditOrder(ctx context.Context, input *proto.OrderInput) (resp *proto.OrderResponse, err error)

func (*Handler) GetOrders

func (h *Handler) GetOrders(ctx context.Context, filter *proto.OrderFilter) (resp *proto.OrderResponse, err error)

func (*Handler) ProvideAccessRoles

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

func (*Handler) ProvideAuthKey

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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