info

package
v1.53.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flipt

type Flipt struct {
	Version          string         `json:"version,omitempty"`
	LatestVersion    string         `json:"latestVersion,omitempty"`
	LatestVersionURL string         `json:"latestVersionURL,omitempty"`
	Commit           string         `json:"commit,omitempty"`
	BuildDate        string         `json:"buildDate,omitempty"`
	GoVersion        string         `json:"goVersion,omitempty"`
	UpdateAvailable  bool           `json:"updateAvailable"`
	IsRelease        bool           `json:"isRelease"`
	OS               string         `json:"os,omitempty"`
	Arch             string         `json:"arch,omitempty"`
	Authentication   authentication `json:"authentication"`
	Storage          storage        `json:"storage"`
	Analytics        *analytics     `json:"analytics,omitempty"`
	UI               *ui            `json:"ui,omitempty"`
}

func New added in v1.53.0

func New(opts ...Option) Flipt

func (Flipt) IsDevelopment added in v1.18.1

func (f Flipt) IsDevelopment() bool

func (Flipt) ServeHTTP

func (f Flipt) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Option added in v1.53.0

type Option func(f *Flipt)

func WithBuild added in v1.53.0

func WithBuild(commit, date, goVersion, version string, isRelease bool) Option

func WithConfig added in v1.53.0

func WithConfig(cfg *config.Config) Option

func WithLatestRelease added in v1.53.0

func WithLatestRelease(releaseInfo release.Info) Option

func WithOS added in v1.53.0

func WithOS(os, arch string) Option

Jump to

Keyboard shortcuts

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