Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEnvService ¶
Types ¶
type EnvProvider ¶
type EnvProvider struct {
Dir string
}
func (*EnvProvider) Boot ¶
func (p *EnvProvider) Boot(container goframe.IContainer) error
func (*EnvProvider) Inject ¶
func (p *EnvProvider) Inject(container goframe.IContainer) goframe.Handler
func (*EnvProvider) IsDefer ¶
func (p *EnvProvider) IsDefer() bool
func (*EnvProvider) Name ¶
func (p *EnvProvider) Name() string
func (*EnvProvider) Params ¶
func (p *EnvProvider) Params(container goframe.IContainer) []any
type EnvService ¶
type EnvService struct {
// contains filtered or unexported fields
}
func (*EnvService) All ¶
func (s *EnvService) All() map[string]string
func (*EnvService) Env ¶
func (s *EnvService) Env() string
func (*EnvService) Exist ¶
func (s *EnvService) Exist(key string) bool
func (*EnvService) Get ¶
func (s *EnvService) Get(key string) string
Click to show internal directories.
Click to hide internal directories.