rest

package
v0.0.0-...-0ab412c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CmdLcdEndpoint  = "lcd-endpoint"
	CmdListenAddr   = "listen-addr"
	CmdApiAddresses = "api-address"

	DefaultLcdEndpoint = "http://localhost:1317"
	DefaultListenAddr  = "localhost:8997"
)
View Source
const ANALYSIS_ENDPOINT = "/statistics"
View Source
const INFO_ENDPOINT = "/indexer/info"
View Source
const ISCN_ENDPOINT = "/iscn/records"
View Source
const LATEST_HEIGHT_ENDPOINT = "/indexer/height/latest"
View Source
const NFT_ENDPOINT = "/likechain/likenft/v1"
View Source
const STARGATE_ENDPOINT = "/cosmos/tx/v1beta1/txs"

Variables

View Source
var (
	DefaultApiAddresses = []string{"like17m4vwrnhjmd20uu7tst7nv0kap6ee7js69jfrs"}
)

Functions

func ConfigCmd

func ConfigCmd(cmd *cobra.Command)

func GetRouter

func GetRouter(pool *pgxpool.Pool, defaultApiAddresses []string) *gin.Engine

func Run

func Run(pool *pgxpool.Pool, listenAddr string, lcdEndpoint string, defaultApiAddresses []string)

Types

type InfoResponse

type InfoResponse struct {
	CommitHash string `json:"commit_hash"`
}

Jump to

Keyboard shortcuts

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