interfaces

package
v0.0.0-...-9d1237e Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebEndpoint

type WebEndpoint struct {
	Name    string
	Methods []string
	Path    string
}

type WebHandler

type WebHandler interface {
	GetEndpoints() []WebEndpoint
	HandleRequest(WebRequest) WebResponse
}

type WebRequest

type WebRequest struct {
	EndPointName string
	Headers      map[string][]string
	URIParams    map[string]string
	QueryParams  map[string][]string
	Body         []byte
}

type WebResponse

type WebResponse struct {
	Code    int
	Headers map[string][]string
	Body    []byte
}

Jump to

Keyboard shortcuts

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