 Documentation
      ¶
      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
}
    Routes ... Route handler struct
func NewRoutes ¶
func NewRoutes(logger log.Logger, bv database.BridgeTransfersView, r *chi.Mux) 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
type Validator ¶ added in v1.2.0
type Validator struct{}
    Validator ... Validates API user request parameters
func (*Validator) ParseValidateAddress ¶ added in v1.2.0
ParseValidateAddress ... Validates and parses the address query parameter
func (*Validator) ParseValidateLimit ¶ added in v1.2.0
ParseValidateLimit ... Validates and parses the limit query parameters
func (*Validator) ValidateCursor ¶ added in v1.2.0
ValidateCursor ... Validates and parses the cursor query parameter
 Click to show internal directories. 
   Click to hide internal directories.