price

package
v0.0.0-...-d15ead3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoaderContext

func NewLoaderContext(ctx context.Context, client Retriever, log logrus.FieldLogger) context.Context

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, log logrus.FieldLogger, opts ...option.ClientOption) (*Client, error)

func (*Client) GetUnitPrice

func (s *Client) GetUnitPrice(ctx context.Context, skuID string) (*Price, error)

type CurrentUnitPrices

type CurrentUnitPrices struct{}

CurrentUnitPrices is an empty placeholder for fields related to unit prices. They are not part of the model to force individual resolvers according to the schema.

type Price

type Price struct {
	Value float64 `json:"value"`
}

func CPUHour

func CPUHour(ctx context.Context) (*Price, error)

func MemoryHour

func MemoryHour(ctx context.Context) (*Price, error)

type Retriever

type Retriever interface {
	GetUnitPrice(ctx context.Context, skuID string) (*Price, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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