app

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultApplicationBeans = []interface{}{
	ApplicationFlags(100000),
	FlagSetFactory(),
	ResourceService(),
}
View Source
var DefaultAssets = &gluten.ResourceSource{
	Name:       "assets",
	AssetNames: assets.AssetNames(),
	AssetFiles: assets.AssetFile(),
}
View Source
var DefaultFileModes = map[string]interface{}{
	"log.dir":     os.FileMode(0775),
	"log.file":    os.FileMode(0664),
	"backup.file": os.FileMode(0664),
	"exe.file":    os.FileMode(0775),
	"run.dir":     os.FileMode(0775),
	"pid.file":    os.FileMode(0666),
	"data.dir":    os.FileMode(0770),
	"data.file":   os.FileMode(0664),
}
View Source
var DefaultGzipAssets = &gluten.ResourceSource{
	Name:       "assets-gzip",
	AssetNames: assetsgz.AssetNames(),
	AssetFiles: assetsgz.AssetFile(),
}
View Source
var DefaultResources = &gluten.ResourceSource{
	Name:       "resources",
	AssetNames: resources.AssetNames(),
	AssetFiles: resources.AssetFile(),
}

Functions

func Application

func Application(name string, options ...Option) sauce.Application

func ApplicationFlags

func ApplicationFlags(priority int) sauce.ApplicationFlags

func FlagSetFactory

func FlagSetFactory() gluten.FactoryBean

func IsHiddenProperty

func IsHiddenProperty(key string) bool

func IsPEMProperty

func IsPEMProperty(key string) bool

func IsPasswordProperty

func IsPasswordProperty(key string) bool

func NewKeyValueFlags

func NewKeyValueFlags() keyValueFlags

func ResourceService

func ResourceService() sauce.ResourceService

func SystemEnvironmentPropertyResolver

func SystemEnvironmentPropertyResolver(applicationName string, priority int) gluten.PropertyResolver

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option configures badger using the functional options paradigm popularized by Rob Pike and Dave Cheney. If you're unfamiliar with this style, see https://commandcenter.blogspot.com/2014/01/self-referential-functions-and-design.html and https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis.

func Beans

func Beans(beans ...interface{}) Option

func Client

func Client(scanner sauce.ClientScanner) Option

func Core

func Core(scanner sauce.CoreScanner) Option

func Server

func Server(scanner sauce.ServerScanner) Option

func WithBuild

func WithBuild(build string) Option

func WithName

func WithName(name string) Option

option that adds name to application

func WithNope

func WithNope() Option

option that do nothing

func WithVersion

func WithVersion(version string) Option

option that adds version to application

Jump to

Keyboard shortcuts

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