Documentation ¶
Index ¶
- type Handlers
- func (h Handlers) GetEarliestSyncedTransaction(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h Handlers) GetLatestSyncedTransaction(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h Handlers) GetTransaction(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h Handlers) GetTransactionsByAcctID(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h Handlers) GetTransactionsByAcctIDCount(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h Handlers) GetTransactionsPagination(ctx context.Context, w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers struct {
TransactionCore transaction.Core
}
func (Handlers) GetEarliestSyncedTransaction ¶
func (h Handlers) GetEarliestSyncedTransaction(ctx context.Context, w http.ResponseWriter, r *http.Request) error
GetEarliestSyncedTransaction retrieves the earliest transaction from CouchDB.
func (Handlers) GetLatestSyncedTransaction ¶
func (h Handlers) GetLatestSyncedTransaction(ctx context.Context, w http.ResponseWriter, r *http.Request) error
GetLatestSyncedTransaction retrieves the latest transaction from CouchDB.
func (Handlers) GetTransaction ¶
GetTransaction retrieves a block from CouchDB based on the round number (num)
func (Handlers) GetTransactionsByAcctID ¶
func (Handlers) GetTransactionsByAcctIDCount ¶
func (Handlers) GetTransactionsPagination ¶
Click to show internal directories.
Click to hide internal directories.