router

package
v0.0.0-...-7f749bc Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package router defines some interfaces for router adapters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	New() Router
	NewWithContext(ctx context.Context) Router
}

Factory creates new routers

type Router

type Router interface {
	Run(cfg config.ServiceConfig)
}

Router sets up the public layer exposed to the users

Directories

Path Synopsis
Package gin provides some basic implementations for building routers based on gin-gonic/gin
Package gin provides some basic implementations for building routers based on gin-gonic/gin
Package mux provides some basic implementations for building routers based on net/http mux
Package mux provides some basic implementations for building routers based on net/http mux

Jump to

Keyboard shortcuts

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