pay

package
v0.0.0-...-cb3ca1d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostCheque

func PostCheque(db *reform.DB, channel, pscAddr, pass string,
	amount uint64, tls bool, timeout uint) error

PostCheque sends a payment cheque to a payment server.

Types

type Config

type Config struct {
	Addr string
	TLS  *TLSConfig
}

Config is a configuration for a payment server.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a payment server.

func NewServer

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

NewServer creates a new payment server.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts to listen and serve to requests.

type TLSConfig

type TLSConfig struct {
	CertFile string
	KeyFile  string
}

TLSConfig is a tls configuration.

Jump to

Keyboard shortcuts

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