http

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Announcement added in v1.3.0

type Announcement struct {
	Title       string `json:"title"`
	Description string `json:"desc"`
	Link        string `json:"link"`
	Show        bool   `json:"show"`
}

type Config

type Config struct {
	Port string `yaml:"port"`
}

type LatestStateResponse

type LatestStateResponse struct {
	Pactus  uint32 `json:"pactus"`
	Polygon uint32 `json:"polygon"`
}

type RecentTxsResponse

type RecentTxsResponse struct {
	ID         string       `json:"id"`
	From       string       `json:"from"`
	To         string       `json:"to"`
	Amount     float64      `json:"amount"`
	Fee        float64      `json:"fee"`
	Date       time.Time    `json:"date"`
	Status     order.Status `json:"status"`
	TxID       string       `json:"tx_id"`
	BridgeType string       `json:"bridge_type"`
	Reason     string       `json:"reason"`
}

type Response

type Response struct {
	Status  int         `json:"status"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type SearchRequest

type SearchRequest struct {
	Q string `query:"q"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewHTTP

func NewHTTP(ctx context.Context, cfg Config, db *database.Database,
	highway chan message.Message, pacCfg *pactus.Config, polCfg, bscCfg, baseCfg evm.Config,
) *Server

! NEW EVM.

func (*Server) Start

func (s *Server) Start()

type Stats

type Stats struct {
	TotalSuccessfulBridges int     `json:"total_successful_bridges"`
	TotalWPACs             float64 `json:"total_wpacs"`
	TotalLockedPACs        float64 `json:"total_locked_pacs"`
}

Jump to

Keyboard shortcuts

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