router

package
v1.0.1-beta-2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

Router provides a nice api around mux.Router.

func ConfiguredRouter

func ConfiguredRouter(
	tableland tableland.Tableland,
	systemService system.SystemService,
	maxRPI uint64,
	rateLimInterval time.Duration,
	supportedChainIDs []tableland.ChainID,
) (*Router, error)

ConfiguredRouter returns a fully configured Router that can be used as an http handler.

func (*Router) Handler

func (r *Router) Handler() http.Handler

Handler returns the configured router http handler.

Directories

Path Synopsis
apiv1
* Tableland Validator - OpenAPI 3.0 * * In Tableland, Validators are the execution unit/actors of the protocol.
* Tableland Validator - OpenAPI 3.0 * * In Tableland, Validators are the execution unit/actors of the protocol.

Jump to

Keyboard shortcuts

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