server

package
v0.0.0-...-950e0e7 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFromBrowser

func ReadFromBrowser(m interface{}) (n int64, err error)

func ServeHTTPDebug

func ServeHTTPDebug(w http.ResponseWriter, req *http.Request)

func WriteToBrowser

func WriteToBrowser(m interface{}) (n int64, err error)

Types

type JSONAnything

type JSONAnything = interface{}

type JSONArray

type JSONArray = []JSONAnything

type JSONObject

type JSONObject = map[string]JSONAnything

type Server

type Server struct {
	errors.Context
	Address         *net.UnixAddr
	Listener        *net.UnixListener
	HTTPHandlerFunc http.HandlerFunc
}

func (*Server) Initialize

func (s *Server) Initialize()

func (*Server) Serve

func (s *Server) Serve()

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)

type ServerRequestJSONBody

type ServerRequestJSONBody JSONObject

func NewRequest

func NewRequest(in *http.Request, body JSONAnything) (out ServerRequestJSONBody)

Jump to

Keyboard shortcuts

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