pricingsource.go 744 B

12345678910111213
  1. package pricingmodel
  2. type PricingSource interface {
  3. // PricingSourceType returns the instance type of the PricingSource, each implementation of this interface should
  4. // provide a unique type that all instances should return
  5. PricingSourceType() PricingSourceType
  6. // PricingSourceKey returns the unique key of the PricingSource instance. In PricingSource implementation that may
  7. // have multiple instances running side by side this key (derived from some configuration will) will Identify each
  8. // instance. In PricingSource implementations where there will only be a single instance (ex Provider List Pricing)
  9. // The PricingSourceKey should match the PricingSourceType
  10. PricingSourceKey() string
  11. GetPricing() (*PricingModelSet, error)
  12. }