Documentation
¶
Index ¶
- type Extra
- type Price
- type Stripe
- type System
- func (s *System) GetCompanyPricing(w http.ResponseWriter, r *http.Request)
- func (s *System) GetEnterprise(ctx context.Context) Price
- func (s *System) GetFree(ctx context.Context) Price
- func (s *System) GetGeneralPricing(w http.ResponseWriter, r *http.Request)
- func (s *System) GetPrice(ctx context.Context, title string) (Price, error)
- func (s *System) GetPrices(ctx context.Context) ([]Price, error)
- func (s *System) GetPro(ctx context.Context) Price
- func (s *System) GetStartup(ctx context.Context) Price
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Price ¶
type Price struct {
Title string `json:"title,omitempty"`
SubTitle string `json:"sub_title,omitempty"`
Price int `json:"price,omitempty"`
TeamMembers int `json:"team_members,omitempty"`
Projects int `json:"projects,omitempty"`
Agents int `json:"agents,omitempty"`
Environments int `json:"environments,omitempty"`
Requests int `json:"requests,omitempty"`
SupportType string `json:"support_type,omitempty"`
Extras []Extra `json:"extras,omitempty"`
Stripe Stripe `json:"stripe,omitempty"`
}
type Stripe ¶
type Stripe struct {
PriceID string `json:"price_id,omitempty"`
PriceString *sql.NullString
DevPriceID string `json:"dev_price_id,omitempty"`
DevPriceString *sql.NullString
}
type System ¶
type System struct {
Config *ConfigBuilder.Config
}
func NewSystem ¶
func NewSystem(cfg *ConfigBuilder.Config) *System
func (*System) GetCompanyPricing ¶
func (s *System) GetCompanyPricing(w http.ResponseWriter, r *http.Request)
func (*System) GetGeneralPricing ¶
func (s *System) GetGeneralPricing(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.