Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Repo -- repo holds the registered sku interfaces Repo = make(map[string]SkuBuilder) )
Functions ¶
func GetRegistry ¶ added in v0.0.87
func GetRegistry() map[string]SkuBuilder
GetRegistry -- gets the map of all registered Sku interface objects
func Register ¶ added in v0.0.87
func Register(name string, sku SkuBuilder)
Register -- add a Sku interface object to the Repo
Types ¶
type Sku ¶
type Sku interface { Procurement() *taskmanager.Task ReStock() *taskmanager.Task PollForTasks() }
Sku - interface for a sku object
type SkuBuilder ¶ added in v0.0.152
type SkuBuilder interface {
New(tm TaskManager, meta map[string]interface{}) Sku
}
SkuBuilder - a object that can build skus
type TaskManager ¶
type TaskManager interface { SaveTask(t *taskmanager.Task) (*taskmanager.Task, error) FindAndStallTaskForCaller(callerName string) (t *taskmanager.Task, err error) FindTask(id string) (t *taskmanager.Task, err error) NewTask(n string, p taskmanager.ProfileType, s string) (t *taskmanager.Task) ScheduleTask(t *taskmanager.Task, expireTime time.Time) }
TaskManager - an interface representing a taskmanager object
Click to show internal directories.
Click to hide internal directories.