pricing

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extra

type Extra struct {
	Title    string `json:"title,omitempty"`
	Launched bool   `json:"launched,omitempty"`
}

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 (s *System) GetEnterprise() Price

func (*System) GetFree

func (s *System) GetFree() Price

func (*System) GetGeneralPricing

func (s *System) GetGeneralPricing(w http.ResponseWriter, r *http.Request)

func (*System) GetPrice

func (s *System) GetPrice(title string) (Price, error)

func (*System) GetPrices

func (s *System) GetPrices() ([]Price, error)

func (*System) GetPro

func (s *System) GetPro() Price

func (*System) GetStartup

func (s *System) GetStartup() Price

func (*System) SetContext

func (s *System) SetContext(ctx context.Context) *System

Jump to

Keyboard shortcuts

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