blockchains

package
v0.0.0-...-cd6a17b Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockchain

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

type BlockchainDB

type BlockchainDB struct {
	Coin          string `db:"coin"`
	Name          string `db:"name"`
	Ticker        string `db:"ticker"`
	AtomicUnit    uint16 `db:"atomic_unit"`
	ExampleWallet string `db:"example_wallet"`
	PoolAPIDB
}

type BlockchainInfo

type BlockchainInfo struct {
	ID            int16
	Coin          string
	Name          string
	Ticker        string
	AtomicUnit    uint16
	ExampleWallet string
}

type PoolAPIDB

type PoolAPIDB struct {
	URL        string `db:"pool_api_url"`
	TLSCA      string `db:"pool_api_tls_ca"`
	ServerName string `db:"pool_api_server_name"`
}

type Service

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

func NewService

func NewService(pgConn *sqlx.DB) *Service

func (*Service) Close

func (s *Service) Close()

func (*Service) GetBlockchainsInfo

func (s *Service) GetBlockchainsInfo() []BlockchainInfo

func (*Service) GetConnection

func (s *Service) GetConnection(coin string) (*grpc.ClientConn, error)

func (*Service) GetInfo

func (s *Service) GetInfo(coin string) (*BlockchainInfo, error)

func (*Service) Start

func (s *Service) Start(ctx context.Context, certsPath string) error

Jump to

Keyboard shortcuts

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