Documentation ¶
Index ¶
- Variables
- func Application(name string, options ...Option) sauce.Application
- func ApplicationFlags(priority int) sauce.ApplicationFlags
- func FlagSetFactory() gluten.FactoryBean
- func IsHiddenProperty(key string) bool
- func IsPEMProperty(key string) bool
- func IsPasswordProperty(key string) bool
- func NewKeyValueFlags() keyValueFlags
- func ResourceService() sauce.ResourceService
- func SystemEnvironmentPropertyResolver(applicationName string, priority int) gluten.PropertyResolver
- type Option
- func Beans(beans ...interface{}) Option
- func Client(scanner sauce.ClientScanner) Option
- func Core(scanner sauce.CoreScanner) Option
- func Server(scanner sauce.ServerScanner) Option
- func WithBuild(build string) Option
- func WithName(name string) Option
- func WithNope() Option
- func WithVersion(version string) Option
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 IsPEMProperty ¶
func IsPasswordProperty ¶
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 Client ¶
func Client(scanner sauce.ClientScanner) Option
func Core ¶
func Core(scanner sauce.CoreScanner) Option
func Server ¶
func Server(scanner sauce.ServerScanner) Option
Click to show internal directories.
Click to hide internal directories.