common

package
v0.0.0-...-10b4495 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

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 (o *Offer) Amount() int

func (*Offer) ID

func (o *Offer) ID() OfferID

func (*Offer) Resources

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

func (*Offer) SetAmount

func (o *Offer) SetAmount(newAmount int)

func (*Offer) SetResources

func (o *Offer) SetResources(res 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