api

package
v0.0.0-...-2bd052e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomHandler

type CustomHandler func(ctx context.Context, input Input) (Output, error)

func (CustomHandler) ServeHTTP

func (c CustomHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Input

type Input struct {
	ID        string
	W         http.ResponseWriter
	R         *http.Request
	GetParams map[string][]string
	User      *models.User
}

type Output

type Output struct {
	Output interface{}
	IsJSON bool
}

Jump to

Keyboard shortcuts

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