2020-12-09 15:31:34 +00:00
|
|
|
package resource
|
|
|
|
|
2021-01-22 17:06:17 +00:00
|
|
|
type SupplierLibrary struct {
|
|
|
|
resourceSupplier []Supplier
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewSupplierLibrary() *SupplierLibrary {
|
|
|
|
return &SupplierLibrary{
|
|
|
|
make([]Supplier, 0),
|
|
|
|
}
|
|
|
|
}
|
2020-12-09 15:31:34 +00:00
|
|
|
|
2021-01-22 17:06:17 +00:00
|
|
|
func (r *SupplierLibrary) AddSupplier(supplier Supplier) {
|
|
|
|
r.resourceSupplier = append(r.resourceSupplier, supplier)
|
2020-12-09 15:31:34 +00:00
|
|
|
}
|
|
|
|
|
2021-01-22 17:06:17 +00:00
|
|
|
func (r *SupplierLibrary) Suppliers() []Supplier {
|
|
|
|
return r.resourceSupplier
|
2020-12-09 15:31:34 +00:00
|
|
|
}
|