Documentation ¶
Index ¶
- func ProvideRemoteSetup(handler *Handler) func(server *grpc.Server)
- type Handler
- func (h *Handler) AddOrder(ctx context.Context, input *proto.OrderInput) (resp *proto.OrderResponse, err error)
- func (h *Handler) CountOrders(ctx context.Context, filter *proto.OrderFilter) (resp *proto.OrderResponse, err error)
- func (h *Handler) DeleteOrder(ctx context.Context, filter *proto.OrderFilter) (resp *proto.OrderResponse, err error)
- func (h *Handler) EditOrder(ctx context.Context, input *proto.OrderInput) (resp *proto.OrderResponse, err error)
- func (h *Handler) GetOrders(ctx context.Context, filter *proto.OrderFilter) (resp *proto.OrderResponse, err error)
- func (h *Handler) ProvideAccessRoles() meta.AccessConfig
- func (h *Handler) ProvideAuthKey() *rsa.PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.