storefront

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package storefront implements the public subscription listings of the subscription module. Only the module facade may reach it.

Index

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

type QuerySubscribeListLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*QuerySubscribeListLogic) QuerySubscribeList

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 NewService(deps Deps) *Service

func (*Service) QuerySubscribeGroupList

func (s *Service) QuerySubscribeGroupList(ctx context.Context) (*dto.QuerySubscribeGroupListResponse, error)

func (*Service) QuerySubscribeList

func (*Service) QueryUserSubscribeNodeList

func (s *Service) QueryUserSubscribeNodeList(ctx context.Context) (*dto.QueryUserSubscribeNodeListResponse, error)

Jump to

Keyboard shortcuts

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