router

package
v2.0.0-dev Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 4 Imported by: 30

Documentation

Overview

SPDX-License-Identifier: Apache-2.0

Package router defines some interfaces for router adapters

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidSequentialEndpoint

func IsValidSequentialEndpoint(endpoint *config.EndpointConfig) bool

Types

type Factory

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

Factory creates new routers

type Router

type Router interface {
	Run(config.ServiceConfig)
}

Router sets up the public layer exposed to the users

type RouterFunc

type RouterFunc func(config.ServiceConfig)

RouterFunc type is an adapter to allow the use of ordinary functions as routers. If f is a function with the appropriate signature, RouterFunc(f) is a Router that calls f.

func (RouterFunc) Run

func (f RouterFunc) Run(cfg config.ServiceConfig)

Run implements the Router interface

Directories

Path Synopsis
SPDX-License-Identifier: Apache-2.0 Package chi provides some basic implementations for building routers based on go-chi/chi SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0 Package chi provides some basic implementations for building routers based on go-chi/chi SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0 Package gin provides some basic implementations for building routers based on gin-gonic/gin SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0 Package gin provides some basic implementations for building routers based on gin-gonic/gin SPDX-License-Identifier: Apache-2.0
Package gorilla provides some basic implementations for building routers based on gorilla/mux SPDX-License-Identifier: Apache-2.0
Package gorilla provides some basic implementations for building routers based on gorilla/mux SPDX-License-Identifier: Apache-2.0
Package httptreemux provides some basic implementations for building routers based on dimfeld/httptreemux SPDX-License-Identifier: Apache-2.0
Package httptreemux provides some basic implementations for building routers based on dimfeld/httptreemux SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0 Package mux provides some basic implementations for building routers based on net/http mux SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0 Package mux provides some basic implementations for building routers based on net/http mux SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0 Package mux provides some basic implementations for building routers based on net/http mux SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0 Package mux provides some basic implementations for building routers based on net/http mux SPDX-License-Identifier: Apache-2.0
Package negroni provides some basic implementations for building routers based on urfave/negroni SPDX-License-Identifier: Apache-2.0
Package negroni provides some basic implementations for building routers based on urfave/negroni SPDX-License-Identifier: Apache-2.0

Jump to

Keyboard shortcuts

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