Movatterモバイル変換


[0]ホーム

URL:


router

package
v28.5.2+incompatibleLatest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License:Apache-2.0Imports:3Imported by:2,310

Details

Repository

github.com/docker/docker

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeExperimentalRouteadded inv1.13.0

type ExperimentalRoute interface {RouteEnable()Disable()}

ExperimentalRoute defines an experimental API route that can be enabled or disabled.

typeRoute

type Route interface {// Handler returns the raw function to create the http handler.Handler()httputils.APIFunc// Method returns the http method that the route responds to.Method()string// Path returns the subpath where the route responds to.Path()string}

Route defines an individual API route in the docker server.

funcExperimentaladded inv1.13.0

func Experimental(rRoute)Route

Experimental will mark a route as experimental.

funcNewDeleteRouteadded inv1.11.0

func NewDeleteRoute(pathstring, handlerhttputils.APIFunc, opts ...RouteWrapper)Route

NewDeleteRoute initializes a new route with the http method DELETE.

funcNewGetRouteadded inv1.11.0

func NewGetRoute(pathstring, handlerhttputils.APIFunc, opts ...RouteWrapper)Route

NewGetRoute initializes a new route with the http method GET.

funcNewHeadRouteadded inv1.11.0

func NewHeadRoute(pathstring, handlerhttputils.APIFunc, opts ...RouteWrapper)Route

NewHeadRoute initializes a new route with the http method HEAD.

funcNewOptionsRouteadded inv1.11.0

func NewOptionsRoute(pathstring, handlerhttputils.APIFunc, opts ...RouteWrapper)Route

NewOptionsRoute initializes a new route with the http method OPTIONS.

funcNewPostRouteadded inv1.11.0

func NewPostRoute(pathstring, handlerhttputils.APIFunc, opts ...RouteWrapper)Route

NewPostRoute initializes a new route with the http method POST.

funcNewPutRouteadded inv1.11.0

func NewPutRoute(pathstring, handlerhttputils.APIFunc, opts ...RouteWrapper)Route

NewPutRoute initializes a new route with the http method PUT.

funcNewRouteadded inv1.11.0

func NewRoute(method, pathstring, handlerhttputils.APIFunc, opts ...RouteWrapper)Route

NewRoute initializes a new local route for the router.

typeRouteWrapper

type RouteWrapper func(rRoute)Route

RouteWrapper wraps a route with extra functionality.It is passed in when creating a new route.

typeRouter

type Router interface {// Routes returns the list of routes to add to the docker server.Routes() []Route}

Router defines an interface to specify a group of routes to add to the docker server.

Source Files

View all Source files

Directories

PathSynopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp