extraroutes

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddResult

type AddResult struct {
	// contains filtered or unexported fields
}

AddResult represents the result of an extra routes add operation. Call its Extract method to interpret it as a *routers.Router.

func Add

Add allows routers to be updated with a list of routes to be added.

func (AddResult) Extract

func (r AddResult) Extract() (*routers.Router, error)

Extract is a function that accepts a result and extracts a router.

type Opts

type Opts struct {
	Routes *[]routers.Route `json:"routes,omitempty"`
}

Opts contains the values needed to add or remove a list og routes on a router.

func (Opts) ToExtraRoutesUpdateMap

func (opts Opts) ToExtraRoutesUpdateMap() (map[string]any, error)

ToExtraRoutesUpdateMap builds a body based on Opts.

type OptsBuilder

type OptsBuilder interface {
	ToExtraRoutesUpdateMap() (map[string]any, error)
}

OptsBuilder allows extensions to add additional parameters to the Add or Remove requests.

type RemoveResult

type RemoveResult struct {
	// contains filtered or unexported fields
}

RemoveResult represents the result of an extra routes remove operation. Call its Extract method to interpret it as a *routers.Router.

func Remove

Remove allows routers to be updated with a list of routes to be removed.

func (RemoveResult) Extract

func (r RemoveResult) Extract() (*routers.Router, error)

Extract is a function that accepts a result and extracts a router.

Directories

Path Synopsis
extraroutes unit tests
extraroutes unit tests

Jump to

Keyboard shortcuts

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