common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2018 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Offer

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

Represents the basic offer of resources into the system

func NewOffer

func NewOffer(id OfferID, amount int, res resources.Resources) *Offer

func (*Offer) Amount

func (offer *Offer) Amount() int

func (*Offer) ID

func (offer *Offer) ID() OfferID

func (*Offer) Resources

func (offer *Offer) Resources() *resources.Resources

type OfferID

type OfferID int64

OfferID is a type for the offer identifier.

Jump to

Keyboard shortcuts

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