Documentation
¶
Index ¶
- type Extra
- type Price
- type Stripe
- type System
- func (s *System) GetCompanyPricing(w http.ResponseWriter, r *http.Request)
- func (s *System) GetEnterprise() Price
- func (s *System) GetFree() Price
- func (s *System) GetGeneralPricing(w http.ResponseWriter, r *http.Request)
- func (s *System) GetPrice(title string) (Price, error)
- func (s *System) GetPrices() ([]Price, error)
- func (s *System) GetPro() Price
- func (s *System) GetStartup() Price
- func (s *System) SetContext(ctx context.Context) *System
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
Context context.Context
}
func NewSystem ¶
func NewSystem(cfg *ConfigBuilder.Config) *System
func (*System) GetCompanyPricing ¶
func (s *System) GetCompanyPricing(w http.ResponseWriter, r *http.Request)
func (*System) GetEnterprise ¶
func (*System) GetGeneralPricing ¶
func (s *System) GetGeneralPricing(w http.ResponseWriter, r *http.Request)
func (*System) GetStartup ¶
Click to show internal directories.
Click to hide internal directories.