templates

package
v1.0.45 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTemplateBody

type CreateTemplateBody struct {
	Name        string `json:"name" form:"name" validate:"required,min=3,max=255"`
	Description string `json:"description" form:"description" validate:"required,min=3,max=2048"`
	Body        string `json:"body" form:"body" validate:"required"`
}

CreateTemplateBody ...

type CreateTemplateControllerImpl

type CreateTemplateControllerImpl struct {
	htmx.DefaultController
	// contains filtered or unexported fields
}

CreateTemplateControllerImpl ...

func NewCreateTemplateController

func NewCreateTemplateController(store seed.Database[ports.ReadTx, ports.ReadWriteTx]) *CreateTemplateControllerImpl

NewCreateTemplateController ...

func (*CreateTemplateControllerImpl) Error

Error ...

func (*CreateTemplateControllerImpl) Post

Post ...

func (*CreateTemplateControllerImpl) Prepare

func (l *CreateTemplateControllerImpl) Prepare() error

Prepare ...

type DeleteTemplateControllerImpl added in v1.0.41

type DeleteTemplateControllerImpl struct {
	ID uuid.UUID `param:"id"`

	htmx.DefaultController
	// contains filtered or unexported fields
}

DeleteTemplateControllerImpl ...

func NewDeleteTemplateController added in v1.0.41

func NewDeleteTemplateController(store seed.Database[ports.ReadTx, ports.ReadWriteTx]) *DeleteTemplateControllerImpl

NewDeleteTemplateController ...

func (*DeleteTemplateControllerImpl) Delete added in v1.0.41

func (l *DeleteTemplateControllerImpl) Delete() error

Post ...

func (*DeleteTemplateControllerImpl) Error added in v1.0.41

Error ...

func (*DeleteTemplateControllerImpl) Prepare added in v1.0.41

func (l *DeleteTemplateControllerImpl) Prepare() error

Prepare ...

type EditBodyControllerImpl added in v1.0.41

type EditBodyControllerImpl struct {
	// Template ...
	Template models.Template

	htmx.DefaultController
	// contains filtered or unexported fields
}

EditBodyControllerImpl ...

func NewEditBodyController added in v1.0.41

func NewEditBodyController(store seed.Database[ports.ReadTx, ports.ReadWriteTx]) *EditBodyControllerImpl

NewEditBodyController ...

func (*EditBodyControllerImpl) Error added in v1.0.41

func (l *EditBodyControllerImpl) Error(err error) error

Error ...

func (*EditBodyControllerImpl) Get added in v1.0.41

func (l *EditBodyControllerImpl) Get() error

Get ...

func (*EditBodyControllerImpl) Prepare added in v1.0.41

func (l *EditBodyControllerImpl) Prepare() error

Prepare ...

func (*EditBodyControllerImpl) Put added in v1.0.41

func (l *EditBodyControllerImpl) Put() error

Put ...

type EditTitleControllerImpl added in v1.0.41

type EditTitleControllerImpl struct {
	Template models.Template

	htmx.DefaultController
	// contains filtered or unexported fields
}

EditTitleControllerImpl ...

func NewEditTitleController added in v1.0.41

func NewEditTitleController(store seed.Database[ports.ReadTx, ports.ReadWriteTx]) *EditTitleControllerImpl

NewEditTitleController ...

func (*EditTitleControllerImpl) Get added in v1.0.41

func (l *EditTitleControllerImpl) Get() error

Get ...

func (*EditTitleControllerImpl) Prepare added in v1.0.41

func (l *EditTitleControllerImpl) Prepare() error

Prepare ...

func (*EditTitleControllerImpl) Put added in v1.0.41

func (l *EditTitleControllerImpl) Put() error

Put ...

type ListTemplatesControllerImpl

type ListTemplatesControllerImpl struct {
	htmx.DefaultController
	// contains filtered or unexported fields
}

ListTemplatesControllerImpl ...

func NewListTemplatesController

func NewListTemplatesController(store seed.Database[ports.ReadTx, ports.ReadWriteTx]) *ListTemplatesControllerImpl

NewListTemplatesController ...

func (*ListTemplatesControllerImpl) Get

Prepare ...

type NewTemplateControllerImpl

type NewTemplateControllerImpl struct {
	htmx.DefaultController
	// contains filtered or unexported fields
}

NewTemplateControllerImpl ...

func NewTemplateController

func NewTemplateController(store seed.Database[ports.ReadTx, ports.ReadWriteTx]) *NewTemplateControllerImpl

NewTemplateController ...

func (*NewTemplateControllerImpl) Get

Get ...

type ShowTemplateControllerImpl

type ShowTemplateControllerImpl struct {
	htmx.DefaultController
	// contains filtered or unexported fields
}

ShowTemplateControllerImpl ...

func NewShowTemplateController

func NewShowTemplateController(store seed.Database[ports.ReadTx, ports.ReadWriteTx]) *ShowTemplateControllerImpl

NewShowTemplateController ...

func (*ShowTemplateControllerImpl) Get

Get ...

Jump to

Keyboard shortcuts

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