Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements the users api interface
func NewHandler ¶
func NewHandler(srv micro.Service) *Handler
NewHandler returns an initialised handler
func (*Handler) Delete ¶
func (h *Handler) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error
Delete a user in the store
func (*Handler) Read ¶
func (h *Handler) Read(ctx context.Context, req *pb.ReadRequest, rsp *pb.ReadResponse) error
Read retrieves a user from the users service
func (*Handler) Update ¶
func (h *Handler) Update(ctx context.Context, req *pb.UpdateRequest, rsp *pb.UpdateResponse) error
Update modifies a user in the users service
Click to show internal directories.
Click to hide internal directories.