Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountHandler ¶
func NewAccountHandler(store AccountStore) jrpc2.Handler
NewAccountHandler returns a json rpc handler to fetch account info
func NewHealthCheck ¶
NewHealthCheck returns a health check json rpc handler
Types ¶
type AccountInfo ¶
type AccountRequest ¶
type AccountRequest struct {
Address string ` json:"address"`
}
type AccountStore ¶
type AccountStore struct {
Client *horizonclient.Client
}
func (AccountStore) GetAccount ¶
func (a AccountStore) GetAccount(request AccountRequest) (AccountInfo, error)
type HealthCheckResult ¶
type HealthCheckResult struct {
Status string `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.