api

package
v0.0.0-...-9d10bbe Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpServer

func NewHttpServer(addr, port string, txTracker chain.WalletTransactionTracker) *httpServer

Types

type Server

type Server interface {
	// Serve starts the API server. Serve blocks until the server is stopped or
	// an error is encoutered.
	Serve() error

	// Close stops the server and cleans up any resources.
	Close() error
}

Server is API layer that accepts requests to track/untrack wallets

type TrackWalletRequest

type TrackWalletRequest struct {
	UserID         int    `json:"user_id"`
	EthereumWallet string `json:"ethereum_wallet"`
	BitcoinWallet  string `json:"bitcoin_wallet"`
	SolanaWallet   string `json:"solana_wallet"`
}

Jump to

Keyboard shortcuts

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