Documentation ¶
Index ¶
- func Init(s micro.Service, c *dig.Container) error
- type CustomerHandler
- func (h *CustomerHandler) Create(ctx context.Context, req *pb_customer.Request, rsp *pb_customer.Response) error
- func (h *CustomerHandler) Delete(ctx context.Context, req *pb_customer.DeleteRequest, rsp *empty.Empty) error
- func (h *CustomerHandler) Get(ctx context.Context, req *pb_customer.GetRequest, rsp *pb_customer.Response) error
- func (h *CustomerHandler) Paginate(ctx context.Context, req *pb_customer.PaginateRequest, ...) error
- func (h *CustomerHandler) Update(ctx context.Context, req *pb_customer.Request, rsp *pb_customer.Response) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomerHandler ¶
type CustomerHandler struct {
// contains filtered or unexported fields
}
CustomerHandler ...
func NewCustomerHandler ¶
func NewCustomerHandler( customer service.CustomerService, ) *CustomerHandler
NewCustomerHandler ...
func (*CustomerHandler) Create ¶
func (h *CustomerHandler) Create(ctx context.Context, req *pb_customer.Request, rsp *pb_customer.Response) error
Create ...
func (*CustomerHandler) Delete ¶
func (h *CustomerHandler) Delete(ctx context.Context, req *pb_customer.DeleteRequest, rsp *empty.Empty) error
Delete ...
func (*CustomerHandler) Get ¶
func (h *CustomerHandler) Get(ctx context.Context, req *pb_customer.GetRequest, rsp *pb_customer.Response) error
Get ...
func (*CustomerHandler) Paginate ¶
func (h *CustomerHandler) Paginate(ctx context.Context, req *pb_customer.PaginateRequest, rsp *pb_customer.PaginateResponse) error
Paginate ...
func (*CustomerHandler) Update ¶
func (h *CustomerHandler) Update(ctx context.Context, req *pb_customer.Request, rsp *pb_customer.Response) error
Update ...
Click to show internal directories.
Click to hide internal directories.