server

package
v0.0.0-...-52efee3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorModel

type ErrorModel struct {
	Status  int    `json:"status"`
	Message string `json:"message"`
}

type ResponseType

type ResponseType string
const (
	ResponseTypeJSON ResponseType = "json"
	ResponseTypeHTML ResponseType = "html"
)

type Server

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

func New

func New(storeEntries []stores.StoreEntry) (t *Server, err error)

func (*Server) ListenAndServe

func (t *Server) ListenAndServe(address string) error

func (*Server) ServeHTTP

func (t *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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