Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Repo -- repo holds the registered sku interfaces Repo = make(map[string]Sku) )
Functions ¶
func GetRegistry ¶ added in v0.0.87
GetRegistry -- gets the map of all registered Sku interface objects
Types ¶
type Sku ¶
type Sku interface { Procurement() *taskmanager.Task ReStock() *taskmanager.Task PollForTasks() New(tm TaskManager, procurementMeta map[string]interface{}) Sku }
Sku - interface for a sku object
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.