billing

package
v1.0.0-beta.56 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeJSON = "application/json"
	TimeFormat      = time.RFC3339
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateAccountResponse

type CreateAccountResponse struct {
	Data struct {
		Id string
	}
}

type Metronome

type Metronome struct {
	Config config.Metronome
}

func (*Metronome) AddDefaultPlan

func (m *Metronome) AddDefaultPlan(ctx context.Context, metronomeId string) (bool, error)

func (*Metronome) AddPlan

func (m *Metronome) AddPlan(ctx context.Context, metronomeId string, planId string) (bool, error)

func (*Metronome) CreateAccount

func (m *Metronome) CreateAccount(ctx context.Context, namespaceId string, name string) (string, error)

type Provider

type Provider interface {
	CreateAccount(ctx context.Context, namespaceId string, name string) (string, error)
	AddDefaultPlan(ctx context.Context, metronomeId string) (bool, error)
	AddPlan(ctx context.Context, metronomeId string, planId string) (bool, error)
}

func NewProvider

func NewProvider() Provider

Jump to

Keyboard shortcuts

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