pricing

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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