server

package
v0.0.0-...-6a2b0a1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: Apache-2.0 Imports: 6 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 {
	Config configuration.Configuration
	Router *httprouter.Router
}

Server is a struct that stores the API Apps high level attributes such as the router, config, and services

func NewServer

func NewServer(config configuration.Configuration, router *httprouter.Router) *Server

NewServer is a function used to initialize a new Server struct

func (*Server) Start

func (s *Server) Start()

Start starts the initialized server

Jump to

Keyboard shortcuts

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