Documentation ¶
Index ¶
- Variables
- func ClearNodeConnections() error
- func DelIPFSGateway(id int64) error
- func DelNodeConnection(id int64) error
- func DelWalletInfo(addr string) error
- func GetNodeCount() (int, error)
- func InsertIPFSGateway(gateway IPFSGateway) error
- func InsertNodeConnection(node NodeConnection) error
- func InsertWalletInfo(walletInfo WalletInfo) error
- func Load() error
- func ReOrderIPFSGateways(db *sql.DB) error
- func ReOrderNodes(db *sql.DB) error
- func ResetIPFSGateways() error
- func ResetNodeConnections() error
- func UpdateIPFSGateway(gateway IPFSGateway) error
- func UpdateNodeConnection(node NodeConnection) error
- func UpdateWalletInfo(walletInfo WalletInfo) error
- type GetIPFSGatewaysParams
- type IPFSGateway
- type JsonWalletInfo
- type NodeConnection
- func GetIntegratedNode() NodeConnection
- func GetLocalNode() NodeConnection
- func GetNodeConnection(id int64) (node NodeConnection, err error)
- func GetNodeConnectionByEndpoint(endpoint string) (node NodeConnection, err error)
- func GetNodeConnections() ([]NodeConnection, error)
- func GetTrustedRemoveNodes() []NodeConnection
- type WalletInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
View Source
var TRUSTED_IPFS_GATEWAYS = []IPFSGateway{
{Name: "deronfts.com", Endpoint: "https://ipfs.deronfts.com/ipfs/{cid}"},
{Name: "ipfs.io", Endpoint: "https://ipfs.io/ipfs/{cid}"},
{Name: "pinata.cloud", Endpoint: "https://gateway.pinata.cloud/ipfs/{cid}"},
{Name: "dweb.link", Endpoint: "https://dweb.link/ipfs/{cid}"},
{Name: "nftstorage.link", Endpoint: "https://{cid}.ipfs.nftstorage.link"},
}
Functions ¶
func ClearNodeConnections ¶
func ClearNodeConnections() error
func DelIPFSGateway ¶
func DelNodeConnection ¶
func DelWalletInfo ¶
func GetNodeCount ¶
func InsertIPFSGateway ¶
func InsertIPFSGateway(gateway IPFSGateway) error
func InsertNodeConnection ¶
func InsertNodeConnection(node NodeConnection) error
func InsertWalletInfo ¶
func InsertWalletInfo(walletInfo WalletInfo) error
func ReOrderIPFSGateways ¶
func ReOrderNodes ¶
func ResetIPFSGateways ¶
func ResetIPFSGateways() error
func ResetNodeConnections ¶
func ResetNodeConnections() error
func UpdateIPFSGateway ¶
func UpdateIPFSGateway(gateway IPFSGateway) error
func UpdateNodeConnection ¶
func UpdateNodeConnection(node NodeConnection) error
func UpdateWalletInfo ¶
func UpdateWalletInfo(walletInfo WalletInfo) error
Types ¶
type GetIPFSGatewaysParams ¶
type IPFSGateway ¶
type IPFSGateway struct { ID int64 Name string Endpoint string FetchHeaders map[string]string Active bool OrderNumber int }
func GetIPFSGateway ¶
func GetIPFSGateway(id int64) (gateway IPFSGateway, err error)
func GetIPFSGateways ¶
func GetIPFSGateways(params GetIPFSGatewaysParams) ([]IPFSGateway, error)
func (IPFSGateway) TestFetch ¶
func (i IPFSGateway) TestFetch() error
type JsonWalletInfo ¶
type NodeConnection ¶
func GetIntegratedNode ¶
func GetIntegratedNode() NodeConnection
func GetLocalNode ¶
func GetLocalNode() NodeConnection
func GetNodeConnection ¶
func GetNodeConnection(id int64) (node NodeConnection, err error)
func GetNodeConnectionByEndpoint ¶
func GetNodeConnectionByEndpoint(endpoint string) (node NodeConnection, err error)
func GetNodeConnections ¶
func GetNodeConnections() ([]NodeConnection, error)
func GetTrustedRemoveNodes ¶
func GetTrustedRemoveNodes() []NodeConnection
type WalletInfo ¶
type WalletInfo struct { Addr string Name string RegistrationTxHex string Timestamp int64 OrderNumber int }
func GetWalletInfo ¶
func GetWalletInfo(addr string) (WalletInfo, error)
func GetWallets ¶
func GetWallets() ([]WalletInfo, error)
Click to show internal directories.
Click to hide internal directories.