Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQueryHandler ¶
func NewQueryHandler(e *echo.Echo, q api.QueryUsecase)
Types ¶
type BlockWithTXs ¶
type Blocks ¶
type Blocks struct {
Blocks []repository.Block `json:"blocks"`
}
type QueryHandler ¶
type QueryHandler struct {
QUsecase api.QueryUsecase
}
func (*QueryHandler) GetBlockWithTXsByID ¶
func (q *QueryHandler) GetBlockWithTXsByID(c echo.Context) error
func (*QueryHandler) GetLatestNBlock ¶
func (q *QueryHandler) GetLatestNBlock(c echo.Context) error
func (*QueryHandler) GetTXByHash ¶
func (q *QueryHandler) GetTXByHash(c echo.Context) error
type ResponseError ¶
type ResponseError struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.