Documentation
¶
Index ¶
- type Handler
- func (h *Handler) Activate(ctx context.Context, request *proto.ActivateStorefrontRequest) (*empty.Empty, error)
- func (h *Handler) Create(ctx context.Context, request *proto.CreateStorefrontRequest) (*proto.StorefrontWithBlocks, error)
- func (h *Handler) Delete(ctx context.Context, request *proto.DeleteStorefrontRequest) (*empty.Empty, error)
- func (h *Handler) GetActive(ctx context.Context, emp *empty.Empty) (*proto.StorefrontWithBlocks, error)
- func (h *Handler) GetByFilter(ctx context.Context, request *proto.GetStorefrontsByFilterRequest) (*proto.Storefronts, error)
- func (h *Handler) GetByID(ctx context.Context, request *proto.GetByIDStorefrontRequest) (*proto.StorefrontWithBlocks, error)
- func (h *Handler) Update(ctx context.Context, request *proto.UpdateStorefrontRequest) (*proto.StorefrontWithBlocks, error)
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
StorefrontService service.StorefrontService
}
func (*Handler) Create ¶
func (h *Handler) Create(ctx context.Context, request *proto.CreateStorefrontRequest) (*proto.StorefrontWithBlocks, error)
func (*Handler) GetByFilter ¶
func (h *Handler) GetByFilter(ctx context.Context, request *proto.GetStorefrontsByFilterRequest) (*proto.Storefronts, error)
func (*Handler) GetByID ¶
func (h *Handler) GetByID(ctx context.Context, request *proto.GetByIDStorefrontRequest) (*proto.StorefrontWithBlocks, error)
func (*Handler) Update ¶
func (h *Handler) Update(ctx context.Context, request *proto.UpdateStorefrontRequest) (*proto.StorefrontWithBlocks, error)
Click to show internal directories.
Click to hide internal directories.