fly

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = 2 * time.Second

Variables

This section is empty.

Functions

func AppName

func AppName() string

AppName returns the name of the current Fly.io application.

func Available

func Available() bool

Available returns true if currently running in a Fly.io environment.

func MachineID

func MachineID() string

MachineID returns the identifier for the current Fly.io machine.

Types

type Environment

type Environment struct {
	HTTPClient *http.Client
	Timeout    time.Duration
	// contains filtered or unexported fields
}

func NewEnvironment

func NewEnvironment() *Environment

func (*Environment) SetPrimaryStatus

func (e *Environment) SetPrimaryStatus(ctx context.Context, isPrimary bool)

func (*Environment) Type

func (e *Environment) Type() string

Jump to

Keyboard shortcuts

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