Documentation
¶
Index ¶
- type Server
- func (s *Server) AddMember(ctx context.Context, r *proto.AddMemberRequest) (*emptypb.Empty, error)
- func (s *Server) CreateGroup(ctx context.Context, r *proto.CreateGroupRequest) (*proto.GroupResponse, error)
- func (s *Server) CreateUser(ctx context.Context, r *proto.CreateUserRequest) (*proto.UserResponse, error)
- func (s *Server) DeleteGroup(ctx context.Context, r *proto.DeleteGroupRequest) (*emptypb.Empty, error)
- func (s *Server) DeleteUser(ctx context.Context, r *proto.DeleteUserRequest) (*emptypb.Empty, error)
- func (s *Server) Group(ctx context.Context, r *proto.GroupRequest) (*proto.GroupResponse, error)
- func (s *Server) Groups(r *proto.GroupsRequest, stream proto.Directory_GroupsServer) error
- func (s *Server) Members(r *proto.MembersRequest, stream proto.Directory_MembersServer) error
- func (s *Server) RemoveMember(ctx context.Context, r *proto.RemoveMemberRequest) (*emptypb.Empty, error)
- func (s *Server) Serve(addr string) error
- func (s *Server) UpdateGroup(ctx context.Context, r *proto.UpdateGroupRequest) (*proto.GroupResponse, error)
- func (s *Server) UpdateUser(ctx context.Context, r *proto.UpdateUserRequest) (*proto.UserResponse, error)
- func (s *Server) User(ctx context.Context, r *proto.UserRequest) (*proto.UserResponse, error)
- func (s *Server) Users(r *proto.UsersRequest, stream proto.Directory_UsersServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { proto.UnimplementedDirectoryServer // contains filtered or unexported fields }
func (*Server) CreateGroup ¶
func (s *Server) CreateGroup(ctx context.Context, r *proto.CreateGroupRequest) (*proto.GroupResponse, error)
func (*Server) CreateUser ¶
func (s *Server) CreateUser(ctx context.Context, r *proto.CreateUserRequest) (*proto.UserResponse, error)
func (*Server) DeleteGroup ¶
func (*Server) DeleteUser ¶
func (*Server) Group ¶
func (s *Server) Group(ctx context.Context, r *proto.GroupRequest) (*proto.GroupResponse, error)
func (*Server) Groups ¶
func (s *Server) Groups(r *proto.GroupsRequest, stream proto.Directory_GroupsServer) error
func (*Server) Members ¶
func (s *Server) Members(r *proto.MembersRequest, stream proto.Directory_MembersServer) error
func (*Server) RemoveMember ¶
func (*Server) UpdateGroup ¶
func (s *Server) UpdateGroup(ctx context.Context, r *proto.UpdateGroupRequest) (*proto.GroupResponse, error)
func (*Server) UpdateUser ¶
func (s *Server) UpdateUser(ctx context.Context, r *proto.UpdateUserRequest) (*proto.UserResponse, error)
func (*Server) User ¶
func (s *Server) User(ctx context.Context, r *proto.UserRequest) (*proto.UserResponse, error)
func (*Server) Users ¶
func (s *Server) Users(r *proto.UsersRequest, stream proto.Directory_UsersServer) error
Click to show internal directories.
Click to hide internal directories.