server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Port            string
	Server          *http.ServeMux
	Router          *router.Router
	InboundRequests chan InboundRequest
}

Client is the the Server Client

func NewServer

func NewServer(port string, requests chan InboundRequest) *Client

NewServer create a new Server instance that contains a new Mux and a new Router

func (*Client) Listen

func (s *Client) Listen()

Listen start listening

type InboundRequest

type InboundRequest struct {
	URL    *url.URL
	Method string
}

Jump to

Keyboard shortcuts

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