create_user

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(
	ctx context.Context,
	name, username, password string,
	roles []orisun.Role,
	boundary string,
	saveEvents admincommon.SaveEventsType,
	getEvents admincommon.GetEventsType,
	logger l.Logger,
	currentUserId *string,
) (*ev.UserCreated, error)

Types

type AddNewUserRequest

type AddNewUserRequest struct {
	Name            string
	Username        string
	Password        string
	ConfirmPassword string
	Role            string
}

type CreateUserHandler

type CreateUserHandler struct {
	// contains filtered or unexported fields
}

func NewCreateUserHandler

func NewCreateUserHandler(
	logger l.Logger,
	boundary string,
	saveEvents admincommon.SaveEventsType,
	getEvents admincommon.GetEventsType) *CreateUserHandler

type UserExistsError

type UserExistsError struct {
	// contains filtered or unexported fields
}

func (UserExistsError) Error

func (e UserExistsError) Error() string

Jump to

Keyboard shortcuts

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