router

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT, Apache-2.0 Imports: 9 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(
	gateway gateway.Gateway,
	maxRPI uint64,
	rateLimInterval time.Duration,
	supportedChainIDs []tableland.ChainID,
	apiKey string,
) (*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