server

package
v0.0.0-...-c8ee330 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(shortener *shorten.Service, logger *logging.Logger) *handler

Types

type Server

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

func NewServer

func NewServer(shorten *shorten.Service, logger *logging.Logger) *Server

func (*Server) NewRouter

func (s *Server) NewRouter()

func (*Server) RegisterRoutes

func (s *Server) RegisterRoutes()

func (*Server) ServeHTTP

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

type Validator

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

func NewValidator

func NewValidator() *Validator

func (*Validator) Validate

func (v *Validator) Validate(i interface{}) error

Jump to

Keyboard shortcuts

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