htmx

package
v0.0.0-...-4240263 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToView

func ToView(t domain.TodoItem) todoItemView

Types

type HTMXHandler

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

func NewHTMXHandler

func NewHTMXHandler(srv ports.TodoService) (*HTMXHandler, error)

func (*HTMXHandler) AddHandleFunc

func (hx *HTMXHandler) AddHandleFunc(w http.ResponseWriter, r *http.Request)

func (*HTMXHandler) Delete

func (hx *HTMXHandler) Delete(w http.ResponseWriter, r *http.Request)

func (*HTMXHandler) DoneHandleFunc

func (hx *HTMXHandler) DoneHandleFunc(done bool) func(w http.ResponseWriter, r *http.Request)

func (*HTMXHandler) Edit

func (hx *HTMXHandler) Edit(w http.ResponseWriter, r *http.Request)

func (*HTMXHandler) IndexHandleFunc

func (hx *HTMXHandler) IndexHandleFunc(w http.ResponseWriter, r *http.Request)

func (*HTMXHandler) ListHandleFunc

func (hx *HTMXHandler) ListHandleFunc(w http.ResponseWriter, r *http.Request)

func (*HTMXHandler) Update

func (hx *HTMXHandler) Update(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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