server

package
v0.0.0-...-89bab2b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 13 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 {
	interfaces.ActiveContext
	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)

Source Files

  • browser.go
  • http.go
  • main.go

Jump to

Keyboard shortcuts

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