offer

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	AgentPubKey               string  `json:"agentPublicKey"`
	TemplateHash              string  `json:"templateHash"`
	Country                   string  `json:"country"`
	ServiceSupply             uint16  `json:"serviceSupply"`
	UnitName                  string  `json:"unitName"`
	UnitType                  string  `json:"unitType"`
	BillingType               string  `json:"billingType"`
	SetupPrice                uint64  `json:"setupPrice"`
	UnitPrice                 uint64  `json:"unitPrice"`
	MinUnits                  uint64  `json:"minUnits"`
	MaxUnit                   *uint64 `json:"maxUnit"`
	BillingInterval           uint    `json:"billingInterval"`
	MaxBillingUnitLag         uint    `json:"maxBillingUnitLag"`
	MaxSuspendTime            uint    `json:"maxSuspendTime"`
	MaxInactiveTimeSec        *uint64 `json:"maxInactiveTimeSec"`
	FreeUnits                 uint8   `json:"freeUnits"`
	ServiceSpecificParameters []byte  `json:"serviceSpecificParameters"`
}

Message is a message being published to SOMC.

func OfferingMessage

func OfferingMessage(agent *data.Account, template *data.Template,
	offering *data.Offering) *Message

OfferingMessage returns new Offering message

Jump to

Keyboard shortcuts

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