routes

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InternalServerError = "Internal server error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Routes

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

func NewRoutes

func NewRoutes(l log.Logger, r *chi.Mux, svc service.Service) Routes

NewRoutes ... Construct a new route handler instance

func (Routes) DocsHandler

func (h Routes) DocsHandler(w http.ResponseWriter, r *http.Request)

func (Routes) L1DepositsHandler

func (h Routes) L1DepositsHandler(w http.ResponseWriter, r *http.Request)

L1DepositsHandler ... Handles /api/v0/deposits/{address} GET requests

func (Routes) L2WithdrawalsHandler

func (h Routes) L2WithdrawalsHandler(w http.ResponseWriter, r *http.Request)

L2WithdrawalsHandler ... Handles /api/v0/withdrawals/{address} GET requests

func (Routes) SupplyView added in v1.4.2

func (h Routes) SupplyView(w http.ResponseWriter, r *http.Request)

SupplyView ... Handles /api/v0/supply GET requests

Jump to

Keyboard shortcuts

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