Documentation ¶
Index ¶
- func NewServer(service *Servicer, shutdown <-chan bool, done chan<- bool)
- type Servicer
- func (s Servicer) CreateGroup(_ context.Context, request *pb.Group) (*pb.Group, error)
- func (s Servicer) CreateUser(_ context.Context, request *pb.User) (*pb.User, error)
- func (s Servicer) DeleteGroup(_ context.Context, request *pb.Group) (*pb.Empty, error)
- func (s Servicer) DeleteUser(_ context.Context, request *pb.User) (*pb.Empty, error)
- func (s Servicer) GetGroup(_ context.Context, request *pb.GetGroupRequest) (*pb.Group, error)
- func (s Servicer) GetUser(_ context.Context, request *pb.GetUserRequest) (*pb.User, error)
- func (s Servicer) ListGroups(context.Context, *pb.Empty) (*pb.Groups, error)
- func (s Servicer) ListUsers(context.Context, *pb.Empty) (*pb.Users, error)
- func (s Servicer) RegisterGRPC(server *grpc.Server)
- func (s Servicer) UpdateGroup(_ context.Context, request *pb.Group) (*pb.Group, error)
- func (s Servicer) UpdateUser(_ context.Context, request *pb.User) (*pb.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Servicer ¶
type Servicer struct { pb.UnimplementedUserServiceServer pb.UnimplementedGroupServiceServer }
func (Servicer) CreateGroup ¶
func (Servicer) CreateUser ¶
func (Servicer) DeleteGroup ¶
func (Servicer) DeleteUser ¶
func (Servicer) ListGroups ¶
func (Servicer) RegisterGRPC ¶
func (Servicer) UpdateGroup ¶
Click to show internal directories.
Click to hide internal directories.