Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Database) CreateUser ¶
func (d *Database) CreateUser(ctx context.Context, req *userspb.CreateUserRequest) (*userspb.CreateUserResponse, error)
type UsersServer ¶
type UsersServer struct { userspb.UnimplementedUserServiceServer // contains filtered or unexported fields }
func NewUsersServer ¶
func NewUsersServer(databaseLocation string) (*UsersServer, error)
func (*UsersServer) Close ¶
func (s *UsersServer) Close() error
func (*UsersServer) CreateUser ¶
func (s *UsersServer) CreateUser(ctx context.Context, req *userspb.CreateUserRequest) (*userspb.CreateUserResponse, error)
func (*UsersServer) ListUsers ¶
func (s *UsersServer) ListUsers(ctx context.Context, req *userspb.ListUsersRequest) (*userspb.ListUsersResponse, error)
Click to show internal directories.
Click to hide internal directories.