controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Mux *http.ServeMux
}

Server is a struct that contains the variables necessary to handle the necessary routes of the rest API

func (*Server) Init

func (s *Server) Init()

Init - configures the server

func (*Server) Run

func (s *Server) Run(addr string)

Run starts the server on the port given in addr

Jump to

Keyboard shortcuts

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