mux

package
v0.0.0-...-45d6836 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServeMux

type ServeMux struct {
	// contains filtered or unexported fields
}

ServeMux in custom type of mux- this is thread safe, since we are only reading the map

func CreateNewServeMux

func CreateNewServeMux() *ServeMux

CreateNewServeMux return a new serve mux

func (*ServeMux) Get

func (s *ServeMux) Get(path string, handler http.Handler)

Get will serve get requests

func (*ServeMux) Post

func (s *ServeMux) Post(path string, handler http.Handler)

Post will serve post requests

func (*ServeMux) ServeHTTP

func (s *ServeMux) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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