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