users

package
v0.0.6-beta Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIN_ENTROPY_BITS = 60
)

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	apiv1.AccountServer
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config, endpoints db.DatabaseEndpoints, auth lib.Auth) *User

func (*User) CreateUser

func (u *User) CreateUser(ctx context.Context, req *apiv1.CreateUserRequest) (*apiv1.User, error)

func (*User) DeleteUser

func (u *User) DeleteUser(ctx context.Context, req *apiv1.UsernameRequest) (*emptypb.Empty, error)

func (*User) GetUser

func (u *User) GetUser(ctx context.Context, req *apiv1.UsernameRequest) (*apiv1.User, error)

func (*User) ListUsers

func (u *User) ListUsers(ctx context.Context, req *apiv1.QueryParameter) (*apiv1.Users, error)

func (*User) LoginUser

func (u *User) LoginUser(ctx context.Context, req *apiv1.LoginUserRequest) (*apiv1.LoginUserResponse, error)

func (*User) UpdateUserCredentials

func (u *User) UpdateUserCredentials(ctx context.Context, req *apiv1.UpdateCredentialsRequest) (*apiv1.User, error)

func (*User) UpdateUserPermissions

func (u *User) UpdateUserPermissions(ctx context.Context, req *apiv1.UpdatePermissionsRequest) (*apiv1.User, error)

Jump to

Keyboard shortcuts

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