apitypes

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UsageByFeature added in v0.3.8

func UsageByFeature(a, b Usage) bool

Types

type Phase

type Phase struct {
	Effective time.Time
	Features  []string
}

type PhaseResponse added in v0.3.8

type PhaseResponse struct {
	Effective time.Time          `json:"effective,omitempty"`
	Features  []refs.FeaturePlan `json:"features,omitempty"`
	Plans     []refs.Plan        `json:"plans,omitempty"`
	Fragments []refs.FeaturePlan `json:"fragments,omitempty"`
}

type ReportRequest

type ReportRequest struct {
	Org     string
	Feature refs.Name
	N       int
	At      time.Time
	Clobber bool
}

type SubscribeRequest

type SubscribeRequest struct {
	Org    string
	Phases []Phase
}

type Usage

type Usage struct {
	Feature refs.Name `json:"feature"`
	Used    int       `json:"used"`
	Limit   int       `json:"limit"`
}

type UsageResponse

type UsageResponse struct {
	Org   string  `json:"org"`
	Usage []Usage `json:"usage"`
}

type WhoIsResponse

type WhoIsResponse struct {
	Org      string `json:"org"`
	StripeID string `json:"stripe_id"`
}

Jump to

Keyboard shortcuts

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