http

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHeaderSVConnection

func NewHeaderSVConnection(client Client, host string) bc.BlockHeaderChain

NewHeaderSVConnection returns a bc.BlockHeaderChain using a header client.

Types

type Client

type Client interface {
	Do(*http.Request) (*http.Response, error)
}

Client interfaces the Do(*http.Request) function to allow for easy mocking.

type P4 added in v0.0.2

type P4 interface {
	PaymentRequest(ctx context.Context, req payd.PayRequest) (*payd.PaymentRequestResponse, error)
	PaymentSend(ctx context.Context, args payd.PayRequest, req payd.PaymentSend) (*payd.PaymentACK, error)
}

P4 interfaces interactions with a p4 server.

func NewP4 added in v0.0.2

func NewP4(c Client) P4

NewP4 returns a new p4 interface.

Jump to

Keyboard shortcuts

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