methods

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

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

func NewHealthCheck() jrpc2.Handler

NewHealthCheck returns a health check json rpc handler

Types

type AccountInfo

type AccountInfo struct {
	ID       string `json:"id"`
	Sequence int64  `json:"sequence,string"`
}

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"`
}

Jump to

Keyboard shortcuts

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