http

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package http provides routes for http router

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(logger *log.Logger, server *server.Server, mysqlConnection *sql.DB, grpcConnectionMap map[string]*grpc.ClientConn) gorouter.Router

NewRouter provides new router

Types

type Adapter

type Adapter struct {
	*http.Server
}

Adapter is http server app adapter

func NewAdapter

func NewAdapter(address string, router http.Handler) *Adapter

NewAdapter provides new primary adapter

func (*Adapter) Start

func (adapter *Adapter) Start(ctx context.Context) error

Start start http application adapter

func (*Adapter) Stop

func (adapter *Adapter) Stop(ctx context.Context) error

Stop stops http application adapter

Directories

Path Synopsis
Package handlers provides http handlers
Package handlers provides http handlers

Jump to

Keyboard shortcuts

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