cost

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package cost provides utilities for calculating AWS Lambda pricing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Domain

func Domain(domain string) string

Domain returns the price of domain's tld.

func Duration

func Duration(ms, memory int) float64

Duration returns the cost of `ms` for the given `memory` configuration in megabytes.

func Invocations

func Invocations(n int) float64

Invocations returns the cost of `n` requests.

func Rate

func Rate(memory int) float64

Rate returns the cost per 100ms for the given `memory` configuration in megabytes.

func Requests

func Requests(n int) float64

Requests returns the cost for the given number of http requests.

func TLD

func TLD(tld string) string

TLD returns the price of a tld.

Types

This section is empty.

Jump to

Keyboard shortcuts

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