pay

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrCodeEqualBalance
)

Codes for bad request replies.

Variables

This section is empty.

Functions

func PostCheque

func PostCheque(db *reform.DB, channel *data.Channel,
	pscAddr data.HexString, key *ecdsa.PrivateKey, amount uint64,
	tls bool, timeout uint, pr *proc.Processor) error

PostCheque sends a payment cheque to a payment server.

Types

type Config

type Config struct {
	*srv.Config
}

Config is a configuration for a pay server.

func NewConfig

func NewConfig() *Config

NewConfig creates a default pay server configuration.

type Server

type Server struct {
	*srv.Server
	// contains filtered or unexported fields
}

Server is a pay server.

func NewServer

func NewServer(conf *Config, logger log.Logger, db *reform.DB) *Server

NewServer creates a new pay server.

Jump to

Keyboard shortcuts

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