server

package
v0.0.0-...-cdc24ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 New

func New(cfg *config.Config) (*Server, error)

func (*Server) AddMember

func (s *Server) AddMember(ctx context.Context, r *proto.AddMemberRequest) (*emptypb.Empty, error)

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 (s *Server) DeleteGroup(ctx context.Context, r *proto.DeleteGroupRequest) (*emptypb.Empty, error)

func (*Server) DeleteUser

func (s *Server) DeleteUser(ctx context.Context, r *proto.DeleteUserRequest) (*emptypb.Empty, error)

func (*Server) Group

func (*Server) Groups

func (*Server) Members

func (*Server) RemoveMember

func (s *Server) RemoveMember(ctx context.Context, r *proto.RemoveMemberRequest) (*emptypb.Empty, error)

func (*Server) Serve

func (s *Server) Serve(addr string) error

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 (*Server) Users

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL