Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubscriptionService ¶
type SubscriptionService struct {
// contains filtered or unexported fields
}
SubscriptionService creates in-memory cache service
func New ¶
func New(daoService dao.IDAO) *SubscriptionService
New creates caching subscription service
func (*SubscriptionService) GetSubscription ¶
func (s *SubscriptionService) GetSubscription(subscriptionID, hostname string) (service.Lookup, error)
GetSubscription attempts to get subscription from cache If not successful it attempts to load from dao and updates cache
func (*SubscriptionService) Load ¶
func (s *SubscriptionService) Load() error
Load loads subscriptions from dao to cache
Click to show internal directories.
Click to hide internal directories.