payment

package
v0.11.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: ISC Imports: 18 Imported by: 0

Documentation

Overview

Package payment - control of payment verification

Index

Constants

View Source
const (
	// MinimumNonceLength - least number of bytes in NONCE
	MinimumNonceLength = 8
	// MaximumNonceLength - most number of bytes in NONCE
	MaximumNonceLength = 64
)

Variables

This section is empty.

Functions

func Finalise added in v0.2.0

func Finalise() error

Finalise - stop all background tasks

func Initialise added in v0.2.0

func Initialise(configuration *Configuration) error

Initialise - setup the payment system

Types

type Configuration added in v0.2.0

type Configuration struct {
	UseDiscovery bool                    `gluamapper:"use_discovery" hcl:"use_discovery" json:"use_discovery"`
	Discovery    *discoveryConfiguration `gluamapper:"discovery" hcl:"discovery" json:"discovery"`
	Bitcoin      *currencyConfiguration  `gluamapper:"bitcoin" hcl:"bitcoin" json:"bitcoin"`
	Litecoin     *currencyConfiguration  `gluamapper:"litecoin" hcl:"litecoin" json:"litecoin"`
}

Configuration - structure for configuration file

Jump to

Keyboard shortcuts

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