payment

package
Version: v0.0.0-...-a7a9960 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2015 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payment

type Payment struct {
	Id        int
	Client    client.Client
	Status    Status
	ExpiresAt time.Time
	Value     int
	// contains filtered or unexported fields
}

type Service

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

func NewService

func NewService(sqler db.SQLer) Service

func (Service) FindByClient

func (s Service) FindByClient(clientId int) ([]Payment, error)

func (Service) FindById

func (s Service) FindById(id int) (Payment, error)

func (Service) Save

func (s Service) Save(ip net.IP, agent int, p *Payment) error

type Status

type Status int
const (
	StatusPending Status = iota
	StatusPayed
)

Jump to

Keyboard shortcuts

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