entitlement

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureService

type FeatureService interface {
	GetByID(ctx context.Context, id string) (feature.Feature, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewEntitlementService

func NewEntitlementService(subscriptionService SubscriptionService,
	featureService FeatureService) *Service

func (*Service) Check

func (s *Service) Check(ctx context.Context, customerID, featureID string) (bool, error)

type SubscriptionService

type SubscriptionService interface {
	List(ctx context.Context, filter subscription.Filter) ([]subscription.Subscription, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL