endpoint

package
v0.0.0-...-4ff33c5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBlockTxsEndpoint

func MakeBlockTxsEndpoint(srv service.Service) endpoint.Endpoint

`MakeBlockTxsEndpoint(src Service) returns the response from `Service.BlockTxs`

func MakeSyncStatusEndpoint

func MakeSyncStatusEndpoint(srv service.Service) endpoint.Endpoint

`MakeSyncStatusEndpoint` return the response from `Service.SyncStatus`

Types

type Endpoints

type Endpoints struct {
	SyncStatusEndpoint endpoint.Endpoint
	BlockTxsEndpoint   endpoint.Endpoint
}

func (Endpoints) BlockTxs

func (e Endpoints) BlockTxs(ctx context.Context, hashString string) (*btcjson.GetBlockVerboseResult, error)

func (Endpoints) SyncStatus

func (e Endpoints) SyncStatus(ctx context.Context) (uint, error)

Jump to

Keyboard shortcuts

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