Documentation
¶
Index ¶
- type Aleo
- type BasicLogger
- func (BasicLogger) Debug(args ...interface{})
- func (BasicLogger) Debugf(format string, args ...interface{})
- func (BasicLogger) Error(args ...interface{})
- func (BasicLogger) Errorf(format string, args ...interface{})
- func (BasicLogger) Info(args ...interface{})
- func (BasicLogger) Infof(format string, args ...interface{})
- func (BasicLogger) Print(args ...interface{})
- func (BasicLogger) Printf(format string, args ...interface{})
- func (BasicLogger) Println(args ...interface{})
- func (BasicLogger) Warn(args ...interface{})
- func (BasicLogger) Warnf(format string, args ...interface{})
- type Client
- func (c *Client) DecodeRawTransaction(transaction_bytes string) (interface{}, error)
- func (c *Client) GetBestBlockHash() (interface{}, error)
- func (c *Client) GetBlock(hash string) (interface{}, error)
- func (c *Client) GetBlockCount() (interface{}, error)
- func (c *Client) GetBlockHash(block_height string) (interface{}, error)
- func (c *Client) GetBlockTemplate() (interface{}, error)
- func (c *Client) GetConnectionCount() (interface{}, error)
- func (c *Client) GetNetworkGraph() (interface{}, error)
- func (c *Client) GetNodeInfo() (rpcapi.NodeInfoResponse, error)
- func (c *Client) GetNodePeers() (rpcapi.GetPeerInfoResponse, error)
- func (c *Client) GetNodeStats() (rpcapi.NodeStatsResponse, error)
- func (c *Client) GetRawTransaction(transaction_id string) (interface{}, error)
- func (c *Client) GetTransactionInfo(transaction_id string) (interface{}, error)
- func (c *Client) SendTransaction(transaction_bytes string) (interface{}, error)
- func (c *Client) ValidateRawTransaction(transaction_bytes string) (interface{}, error)
- type Logger
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aleo ¶
type Aleo struct {
Username string
Password string
URL string
// contains filtered or unexported fields
}
Aleo represents a separate Telegram Aleo instance.
type BasicLogger ¶
type BasicLogger struct{}
func (BasicLogger) Debug ¶
func (BasicLogger) Debug(args ...interface{})
func (BasicLogger) Debugf ¶
func (BasicLogger) Debugf(format string, args ...interface{})
func (BasicLogger) Error ¶
func (BasicLogger) Error(args ...interface{})
func (BasicLogger) Errorf ¶
func (BasicLogger) Errorf(format string, args ...interface{})
func (BasicLogger) Info ¶
func (BasicLogger) Info(args ...interface{})
func (BasicLogger) Infof ¶
func (BasicLogger) Infof(format string, args ...interface{})
func (BasicLogger) Print ¶
func (BasicLogger) Print(args ...interface{})
func (BasicLogger) Printf ¶
func (BasicLogger) Printf(format string, args ...interface{})
func (BasicLogger) Println ¶
func (BasicLogger) Println(args ...interface{})
func (BasicLogger) Warn ¶
func (BasicLogger) Warn(args ...interface{})
func (BasicLogger) Warnf ¶
func (BasicLogger) Warnf(format string, args ...interface{})
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a low-level Telegram client
func (*Client) DecodeRawTransaction ¶
func (*Client) GetBestBlockHash ¶
func (*Client) GetBlockCount ¶
func (*Client) GetBlockHash ¶
func (*Client) GetBlockTemplate ¶
func (*Client) GetConnectionCount ¶
func (*Client) GetNetworkGraph ¶
func (*Client) GetNodeInfo ¶
func (c *Client) GetNodeInfo() (rpcapi.NodeInfoResponse, error)
GetMe returns info about bot as a User object
func (*Client) GetNodePeers ¶
func (c *Client) GetNodePeers() (rpcapi.GetPeerInfoResponse, error)
func (*Client) GetNodeStats ¶
func (c *Client) GetNodeStats() (rpcapi.NodeStatsResponse, error)
func (*Client) GetRawTransaction ¶
func (*Client) GetTransactionInfo ¶
func (*Client) SendTransaction ¶
func (*Client) ValidateRawTransaction ¶
type Logger ¶
type Logger interface {
Debugf(format string, args ...interface{})
Infof(format string, args ...interface{})
Println(args ...interface{})
Printf(format string, args ...interface{})
Warnf(format string, args ...interface{})
Errorf(format string, args ...interface{})
Debug(args ...interface{})
Info(args ...interface{})
Print(args ...interface{})
Warn(args ...interface{})
Error(args ...interface{})
}
Logger defines interface for any compatible logger
type Settings ¶
type Settings struct {
// Aleo API Url
URL string
// Aleo RPC username
Username string
// Aleo RPC password
Password string
// Synchronous prevents handlers from running in parallel.
// It makes ProcessUpdate return after the handler is finished.
Synchronous bool
// Verbose forces Aleo to log all upcoming requests.
// Use for debugging purposes only.
Verbose bool
// Reporter is a callback function that will get called
// on any panics recovered from endpoint handlers.
Reporter func(error)
// HTTP Client used to make requests to ALEO node api
Client *rpc2.Client
// Offline allows to create a aleo without network for testing purposes.
Offline bool
}
Settings represents a utility struct for passing certain properties of a Aleo around and is required to make Aleos.