Documentation
¶
Overview ¶
Package storefront implements the public subscription listings of the subscription module. Only the module facade may reach it.
Index ¶
- type Deps
- type QuerySubscribeGroupListLogic
- type QuerySubscribeListLogic
- type QueryUserSubscribeNodeListLogic
- type Service
- func (s *Service) QuerySubscribeGroupList(ctx context.Context) (*dto.QuerySubscribeGroupListResponse, error)
- func (s *Service) QuerySubscribeList(ctx context.Context, req *dto.QuerySubscribeListRequest) (*dto.QuerySubscribeListResponse, error)
- func (s *Service) QueryUserSubscribeNodeList(ctx context.Context) (*dto.QueryUserSubscribeNodeListResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct {
Plans repository.SubscribeRepo
UserSubs repository.UserSubscriptionRepo
Nodes repository.NodeRepo
// Host is the site host list (first line is used for node fallbacks).
Host string
// IsTrialPlan reports whether the plan is the currently configured trial
// plan; the registration config is runtime-mutable.
IsTrialPlan func(planID int64) bool
}
type QuerySubscribeGroupListLogic ¶
type QuerySubscribeGroupListLogic struct {
logger.Logger
// contains filtered or unexported fields
}
func (*QuerySubscribeGroupListLogic) QuerySubscribeGroupList ¶
func (l *QuerySubscribeGroupListLogic) QuerySubscribeGroupList() (resp *dto.QuerySubscribeGroupListResponse, err error)
type QuerySubscribeListLogic ¶
func (*QuerySubscribeListLogic) QuerySubscribeList ¶
func (l *QuerySubscribeListLogic) QuerySubscribeList(req *dto.QuerySubscribeListRequest) (resp *dto.QuerySubscribeListResponse, err error)
type QueryUserSubscribeNodeListLogic ¶
type QueryUserSubscribeNodeListLogic struct {
logger.Logger
// contains filtered or unexported fields
}
func (*QueryUserSubscribeNodeListLogic) QueryUserSubscribeNodeList ¶
func (l *QueryUserSubscribeNodeListLogic) QueryUserSubscribeNodeList() (resp *dto.QueryUserSubscribeNodeListResponse, err error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) QuerySubscribeGroupList ¶
func (*Service) QuerySubscribeList ¶
func (s *Service) QuerySubscribeList(ctx context.Context, req *dto.QuerySubscribeListRequest) (*dto.QuerySubscribeListResponse, error)
func (*Service) QueryUserSubscribeNodeList ¶
Click to show internal directories.
Click to hide internal directories.