hypertext

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Code generated by muxt. DO NOT EDIT. muxt version: v0.17.4

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(mux *http.ServeMux, receiver RoutesReceiver)

Types

type ListData

type ListData struct {
	Err   error
	List  database.List
	Tasks []database.TasksByListIDRow
}

type RoutesReceiver

type RoutesReceiver interface {
	Lists(ctx context.Context) []database.List
	GetList(ctx context.Context, id int32) ListData
	UpdateList(ctx context.Context, listID int32, form UpdateListForm) ListData
}

type TemplateData

type TemplateData[T any] struct {
	// contains filtered or unexported fields
}

func (*TemplateData[T]) Err

func (data *TemplateData[T]) Err() error

func (*TemplateData[T]) Header

func (data *TemplateData[T]) Header(key, value string) *TemplateData[T]

func (*TemplateData[T]) MuxtVersion

func (data *TemplateData[T]) MuxtVersion() string

func (*TemplateData[T]) Ok

func (data *TemplateData[T]) Ok() bool

func (*TemplateData[T]) Path

func (data *TemplateData[T]) Path() TemplateRoutePaths

func (*TemplateData[T]) Receiver

func (data *TemplateData[T]) Receiver() RoutesReceiver

func (*TemplateData[T]) Redirect

func (data *TemplateData[T]) Redirect(url string, code int) (*TemplateData[T], error)

func (*TemplateData[T]) Request

func (data *TemplateData[T]) Request() *http.Request

func (*TemplateData[T]) Result

func (data *TemplateData[T]) Result() T

func (*TemplateData[T]) StatusCode

func (data *TemplateData[T]) StatusCode(statusCode int) *TemplateData[T]

type TemplateRoutePaths

type TemplateRoutePaths struct {
}

func (TemplateRoutePaths) GetList

func (TemplateRoutePaths) GetList(id int32) string

func (TemplateRoutePaths) Lists

func (TemplateRoutePaths) Lists() string

func (TemplateRoutePaths) UpdateList

func (TemplateRoutePaths) UpdateList(id int32) string

type UpdateListForm

type UpdateListForm struct {
	TaskIDs []int32 `name:"task-id"`
}

Directories

Path Synopsis
internal
fake
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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