routes

package
v0.0.0-...-e865ecf Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 7 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(r *chi.Mux, svc service.Service, enableCache bool, cache *cache.LruCache) Routes

NewRoutes ... Construct a new route handler instance

func (Routes) BridgeRecordsHandler

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

BridgeRecordsHandler ... Handles /api/v1/bridge-records GET requests

func (Routes) BridgeValidHandler

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

func (Routes) L1ToL2ListHandler

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

L1ToL2ListHandler ... Handles /api/v1/deposits GET requests

func (Routes) L2ToL1ListHandler

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

L2ToL1ListHandler ... Handles /api/v1/withdrawals GET requests

func (Routes) StakingRecordsHandler

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

StakingRecordsHandler ... Handles /api/v1/staking-records GET requests

func (Routes) StakingValidHandler

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

Jump to

Keyboard shortcuts

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