internal

package
v0.0.0-...-f424e13 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppName string
	Port    string
}

Config contains the full config structure of this application

func GetConfig

func GetConfig() (*Config, error)

GetConfig gets the config setup from env or yaml file source

type Server

type Server struct {
	Logger *zap.Logger
	Config *Config

	*http.Server
}

Server contains the full structure for the new HTTP server

func NewServer

func NewServer(cfg *Config) (*Server, error)

NewServer creates new server with logger

func (*Server) Start

func (s *Server) Start()

Start kicks off the server

Jump to

Keyboard shortcuts

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