rest

package
v0.0.0-...-4a2620c Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 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 Server

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

Server is a REST server @title Blueprint Swagger API @version 1.0 @description Swagger API for analytics service. @termsOfService http://swagger.io/terms/ @securityDefinitions.basic Auth @authorizationurl /validate @name token @contact.name API Support @contact.email test@gmail.com

@license.name MIT @license.url https://github.com/MartinHeinz/go-project-blueprint/blob/master/LICENSE

func New

func New(logger *zap.Logger, auth ports.Auther, an ports.Analyter, port string) *Server

New ...

func (*Server) CheckAuth

func (s *Server) CheckAuth(next http.Handler) http.Handler

CheckAuth ...

func (*Server) Handlers

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

Handlers ...

func (*Server) Start

func (s *Server) Start() error

Start starts the REST server

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop grecefuly terminages the REST server

Jump to

Keyboard shortcuts

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