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 ...
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) 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) 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 ...
Click to show internal directories.
Click to hide internal directories.