http

package
v21.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPoolsHandler

func NewPoolsHandler(e *echo.Echo, us mvc.PoolsUsecase)

NewPoolsHandler will initialize the pools/ resources endpoint

Types

type PoolsHandler

type PoolsHandler struct {
	PUsecase mvc.PoolsUsecase
}

PoolsHandler represent the httphandler for pools

func (*PoolsHandler) GetAllPools

func (a *PoolsHandler) GetAllPools(c echo.Context) error

GetAllPools will fetch all supported pool types by the Osmosis chain

func (*PoolsHandler) GetConcentratedPoolTicks

func (a *PoolsHandler) GetConcentratedPoolTicks(c echo.Context) error

func (*PoolsHandler) GetPool

func (a *PoolsHandler) GetPool(c echo.Context) error

GetPool will fetch a pool by its id

type ResponseError

type ResponseError struct {
	Message string `json:"message"`
}

ResponseError represent the response error struct

Jump to

Keyboard shortcuts

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