Documentation
¶
Index ¶
- func ComputeEnvName(c *Want) string
- func ComputePropertyName(c *Want) string
- func ListEnvNames(app string) []string
- func ListPropertyNames(app string) []string
- func NewMainModule() *application.ModuleBuilder
- func NewTestModule() *application.ModuleBuilder
- func SetDefaultAppName(name string)
- type Category
- type Context
- type Have
- type Locator
- type LocatorChain
- type LocatorRegistration
- type LocatorRegistry
- type Query
- type Scope
- type Service
- type User
- type Want
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultAppName ¶
func SetDefaultAppName(name string)
SetDefaultAppName 设置默认的应用程序名称 这个函数是一次性的,一旦设置成功,后续的调用将无效
Types ¶
type Context ¶
type Context interface {
AppName() string
Query(c *Want) (*Have, error)
GetPath(c *Want) afs.Path
GetEnvironment() environment.Table
GetProperties() properties.Table
}
Context ...
type LocatorRegistration ¶
LocatorRegistration ...
type LocatorRegistry ¶
type LocatorRegistry interface {
Registrations() []*LocatorRegistration
}
LocatorRegistry ...
Directories
¶
| Path | Synopsis |
|---|---|
|
gen
|
|
|
modules
|
|
|
src
|
|
|
configen/golang
command
|
|
|
main/golang
command
|
|
|
test/golang
command
|
|
Click to show internal directories.
Click to hide internal directories.