server

package
v0.0.0-...-a56d3c4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForwardRequest

type ForwardRequest struct {
	ID     uuid.UUID
	Header http.Header
	URI    *url.URL
	Body   *[]byte
	Method string
	Proto  string
}

type Request

type Request struct {
	R *http.Request

	ID uuid.UUID
	// contains filtered or unexported fields
}

type Response

type Response struct {
	ID      uuid.UUID
	Headers http.Header
	Status  int
	Body    *[]byte
}

type Server

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

func NewServer

func NewServer(port int) *Server

func (*Server) Run

func (s *Server) Run() error

Run the webserver

Jump to

Keyboard shortcuts

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