go-api-boilerplate: github.com/vardius/go-api-boilerplate/cmd/auth/internal/interfaces/http Index | Files | Directories

package http

import "github.com/vardius/go-api-boilerplate/cmd/auth/internal/interfaces/http"

Package http provides routes for http router

Index

Package Files

adapter.go doc.go router.go

func NewRouter Uses

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

NewRouter provides new router

type Adapter Uses

type Adapter struct {
    *http.Server
}

Adapter is http server app adapter

func NewAdapter Uses

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

NewAdapter provides new primary adapter

func (*Adapter) Start Uses

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

Start start http application adapter

func (*Adapter) Stop Uses

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

Stop stops http application adapter

Directories

PathSynopsis
handlersPackage handlers provides http handlers

Package http imports 14 packages (graph) and is imported by 1 packages. Updated 2020-08-04. Refresh now. Tools for package owners.