server

package
v0.0.0-...-0616413 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: MIT Imports: 26 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 {
	PgHost     string
	PgPort     int
	PgDb       string
	PgUsername string
	PgPassword string
}

Config to hold configuration info

type Server

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

Server provides a HTTPHandler and shared resources

func NewServer

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

NewServer builds a new instance of server

func (*Server) GetHandler

func (s *Server) GetHandler() http.Handler

GetHandler provides the Router

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UserDto

type UserDto struct {
	UUID     string
	Email    string
	Name     string
	Password string
}

UserDto holds info from DB

Jump to

Keyboard shortcuts

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