handler

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Upgrader = websocket.Upgrader{}

Functions

func Account

func Account(c echo.Context) error

func AccountDetails

func AccountDetails(c echo.Context) error

func Accounts

func Accounts(c echo.Context) error

func Activation

func Activation(c echo.Context) error

func Activations

func Activations(c echo.Context) error

func Block

func Block(c echo.Context) error

func Epoch

func Epoch(c echo.Context) error

func EpochDetails

func EpochDetails(c echo.Context) error

func Epochs

func Epochs(c echo.Context) error

func GetPagination

func GetPagination(c echo.Context) (pageNumber, pageSize int64)

func HealthzHandler

func HealthzHandler(c echo.Context) error

func Layer

func Layer(c echo.Context) error

func LayerDetails

func LayerDetails(c echo.Context) error

func Layers

func Layers(c echo.Context) error

func NetworkInfo

func NetworkInfo(c echo.Context) error

func NetworkInfoWS

func NetworkInfoWS(c echo.Context) error

func Reward

func Reward(c echo.Context) error

func Rewards

func Rewards(c echo.Context) error
func Search(c echo.Context) error

func Smesher

func Smesher(c echo.Context) error

func SmesherDetails

func SmesherDetails(c echo.Context) error

func Smeshers

func Smeshers(c echo.Context) error

func Synced

func Synced(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"`
}

Jump to

Keyboard shortcuts

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