Documentation ¶
Index ¶
- Variables
- func Account(c echo.Context) error
- func AccountDetails(c echo.Context) error
- func Accounts(c echo.Context) error
- func Activation(c echo.Context) error
- func Activations(c echo.Context) error
- func Block(c echo.Context) error
- func Epoch(c echo.Context) error
- func EpochDetails(c echo.Context) error
- func Epochs(c echo.Context) error
- func GetPagination(c echo.Context) (pageNumber, pageSize int64)
- func HealthzHandler(c echo.Context) error
- func Layer(c echo.Context) error
- func LayerDetails(c echo.Context) error
- func Layers(c echo.Context) error
- func NetworkInfo(c echo.Context) error
- func NetworkInfoWS(c echo.Context) error
- func Reward(c echo.Context) error
- func Rewards(c echo.Context) error
- func Search(c echo.Context) error
- func Smesher(c echo.Context) error
- func SmesherDetails(c echo.Context) error
- func Smeshers(c echo.Context) error
- func Synced(c echo.Context) error
- func TotalRewards(c echo.Context) error
- func Transaction(c echo.Context) error
- func Transactions(c echo.Context) error
- type ApiContext
- type DataResponse
- type PaginatedDataResponse
- type PaginationMetadata
- type RedirectResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var Upgrader = websocket.Upgrader{}
Functions ¶
func AccountDetails ¶
func AccountDetails(c echo.Context) error
func Activation ¶
func Activation(c echo.Context) error
func Activations ¶
func Activations(c echo.Context) error
func EpochDetails ¶
func EpochDetails(c echo.Context) error
func GetPagination ¶
func GetPagination(c echo.Context) (pageNumber, pageSize int64)
func HealthzHandler ¶
func HealthzHandler(c echo.Context) error
func LayerDetails ¶
func LayerDetails(c echo.Context) error
func NetworkInfo ¶
func NetworkInfo(c echo.Context) error
func NetworkInfoWS ¶
func NetworkInfoWS(c echo.Context) error
func SmesherDetails ¶
func SmesherDetails(c echo.Context) error
func TotalRewards ¶ added in v1.2.0
func TotalRewards(c echo.Context) error
func Transaction ¶
func Transaction(c echo.Context) error
func Transactions ¶
func Transactions(c echo.Context) error
Types ¶
type ApiContext ¶
type ApiContext struct { echo.Context Service service.AppService }
type DataResponse ¶
type DataResponse struct {
Data interface{} `json:"data"`
}
type PaginatedDataResponse ¶
type PaginatedDataResponse struct { Data interface{} `json:"data"` Pagination PaginationMetadata `json:"pagination"` }
type PaginationMetadata ¶
type PaginationMetadata struct { TotalCount int64 `json:"totalCount"` PageCount int64 `json:"pageCount"` PerPage int64 `json:"perPage"` Next int64 `json:"next"` HasNext bool `json:"hasNext"` HasPrevious bool `json:"hasPrevious"` Current int64 `json:"current"` Previous int64 `json:"previous"` }
func GetPaginationMetadata ¶
func GetPaginationMetadata(total int64, pageNumber int64, pageSize int64) PaginationMetadata
type RedirectResponse ¶
type RedirectResponse struct {
Redirect string `json:"redirect"`
}
Click to show internal directories.
Click to hide internal directories.