api

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Router *chi.Mux
	// contains filtered or unexported fields
}

func NewApi

func NewApi(bv database.BridgeView) *Api

func (*Api) DepositsHandler

func (a *Api) DepositsHandler(w http.ResponseWriter, r *http.Request)

func (*Api) HealthzHandler

func (a *Api) HealthzHandler(w http.ResponseWriter, r *http.Request)

func (*Api) Listen

func (a *Api) Listen(port string) error

func (*Api) WithdrawalsHandler

func (a *Api) WithdrawalsHandler(w http.ResponseWriter, r *http.Request)

type PaginationResponse

type PaginationResponse struct {
	// TODO type this better
	Data        interface{} `json:"data"`
	Cursor      string      `json:"cursor"`
	HasNextPage bool        `json:"hasNextPage"`
}

Jump to

Keyboard shortcuts

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