accounts

package
v0.1.20 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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetAccountTokenController

func NewGetAccountTokenController(db ports.Accounts) *tokens.GetAccountTokenControllerImpl

NewGetAccountTokenController ...

Types

type CreateControllerImpl

type CreateControllerImpl struct {
	OperatorID  uuid.UUID `json:"operator_id" form:"operator_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
}

CreateControllerImpl ...

func NewCreateController

func NewCreateController(db ports.Repository) *CreateControllerImpl

NewCreateController ...

func (*CreateControllerImpl) Post

func (l *CreateControllerImpl) Post() error

Post ...

func (*CreateControllerImpl) Prepare

func (l *CreateControllerImpl) Prepare() error

Prepare ...

type DeleteAccountControllerImpl

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

	ports.Accounts
	htmx.DefaultController
}

DeleteAccountControllerImpl ...

func NewDeleteAccountController

func NewDeleteAccountController(db ports.Accounts) *DeleteAccountControllerImpl

NewDeleteAccountController ...

func (*DeleteAccountControllerImpl) Delete

func (l *DeleteAccountControllerImpl) Delete() error

Delete ...

type ListAccountsController

type ListAccountsController 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.Accounts
	htmx.DefaultController
}

ListAccountsController ...

func NewListAccountsController

func NewListAccountsController(db ports.Accounts) *ListAccountsController

NewListAccountsController ...

func (*ListAccountsController) Get

func (l *ListAccountsController) Get() error

Prepare ...

func (*ListAccountsController) Prepare

func (l *ListAccountsController) Prepare() error

Prepare ...

type NewAccountControllerImpl

type NewAccountControllerImpl struct {
	Operators []*models.Operator

	ports.Repository
	htmx.DefaultController
}

NewAccountControllerImpl ...

func NewAccountController

func NewAccountController(db ports.Repository) *NewAccountControllerImpl

NewAccountController ...

func (*NewAccountControllerImpl) Get

Get ...

func (*NewAccountControllerImpl) Prepare

func (l *NewAccountControllerImpl) Prepare() error

Prepare ...

type ShowAccountControllerImpl

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

	ports.Accounts
	htmx.DefaultController
}

ShowAccountControllerImpl ...

func NewShowAccountController

func NewShowAccountController(db ports.Accounts) *ShowAccountControllerImpl

NewShowAccountController ...

func (*ShowAccountControllerImpl) Get

Get ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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