Documentation ¶
Index ¶
- type User
- func (u *User) Disable(ctx context.Context, r *proto.CommandRequest) (*proto.Empty, error)
- func (u *User) Enable(ctx context.Context, r *proto.CommandRequest) (*proto.Empty, error)
- func (u *User) Get(ctx context.Context, r *proto.GetRequest) (*proto.User, error)
- func (u *User) GetByID(ctx context.Context, r *proto.GetByIDRequest) (*proto.User, error)
- func (User) GetName() string
- func (u *User) List(ctx context.Context, r *proto.ListRequest) (*proto.ListResponse, error)
- func (u *User) Remove(ctx context.Context, r *proto.CommandRequest) (*proto.Empty, error)
- func (u User) SetRoutes(s *grpc.Server)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
User gRPC transport.GRPCService container
func NewUser ¶
func NewUser(cmd service.UserCommandHandler, q service.UserQuery) *User
NewUser Create a new User gRPC Handler container
func (*User) List ¶
func (u *User) List(ctx context.Context, r *proto.ListRequest) (*proto.ListResponse, error)
Click to show internal directories.
Click to hide internal directories.