server

package
v0.0.0-...-4173f1e Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 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 {
	Address         *net.UnixAddr
	Listener        *net.UnixListener
	HTTPHandlerFunc http.HandlerFunc
	// contains filtered or unexported fields
}

func (*Server) Serve

func (s *Server) Serve() (err error)

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