users

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserControllerImpl

type CreateUserControllerImpl struct {
	AccountID                uuid.UUID `json:"account_id" form:"account_id" validate:"required,uuid"`
	AccountSigningKeyGroupID uuid.UUID `json:"account_skgs_id" form:"account_skgs_id" validate:"required,uuid"`
	Name                     string    `json:"name" form:"name" validate:"required,min=3,max=100"`
	Description              string    `json:"description" form:"description" validate:"required,min=3,max=1024"`

	ports.Repository
	htmx.DefaultController
}

CreateUserControllerImpl ...

func NewCreateUserController

func NewCreateUserController(db ports.Repository) *CreateUserControllerImpl

NewCreateUserController ...

func (*CreateUserControllerImpl) Get

Get ...

func (*CreateUserControllerImpl) Post

func (l *CreateUserControllerImpl) Post() error

Post ...

func (*CreateUserControllerImpl) Prepare

func (l *CreateUserControllerImpl) Prepare() error

Prepare ...

type DeleteUserControllerImpl

type DeleteUserControllerImpl struct {
	ID uuid.UUID `json:"name" form:"name" param:"id" validate:"required,uuid"`

	ports.Users
	htmx.DefaultController
}

DeleteUserControllerImpl ...

func NewDeleteUserController

func NewDeleteUserController(db ports.Users) *DeleteUserControllerImpl

NewDeleteUserController ...

func (*DeleteUserControllerImpl) Delete

func (l *DeleteUserControllerImpl) Delete() error

Delete ...

type ListUsersController

type ListUsersController struct {
	Offset int    `json:"offset" form:"offset"`
	Limit  int    `json:"limit" form:"limit"`
	Search string `json:"search" form:"search"`
	Sort   string `json:"sort" form:"sort"`

	ports.Users
	htmx.DefaultController
}

ListUsersController ...

func NewListUsersController

func NewListUsersController(db ports.Users) *ListUsersController

NewListUsersController ...

func (*ListUsersController) Get

func (l *ListUsersController) Get() error

Prepare ...

func (*ListUsersController) Prepare

func (l *ListUsersController) Prepare() error

Prepare ...

type NewUserControllerImpl

type NewUserControllerImpl struct {
	Accounts []*models.Account

	ports.Repository
	htmx.DefaultController
}

NewUserControllerImpl ...

func NewUserController

func NewUserController(db ports.Repository) *NewUserControllerImpl

NewUserController ...

func (*NewUserControllerImpl) Get

func (l *NewUserControllerImpl) Get() error

Get ...

func (*NewUserControllerImpl) Prepare

func (l *NewUserControllerImpl) Prepare() error

Prepare ...

type ShowUserControllerImpl

type ShowUserControllerImpl struct {
	ID uuid.UUID `json:"name" form:"name" validate:"required:uuid"`

	ports.Users
	htmx.DefaultController
}

ShowUserControllerImpl ...

func NewShowUserController

func NewShowUserController(db ports.Users) *ShowUserControllerImpl

NewShowUserController ...

func (*ShowUserControllerImpl) Get

func (l *ShowUserControllerImpl) Get() error

Get ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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