env

package
v0.0.0-...-41a006c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEnvService

func NewEnvService(params ...any) (any, error)

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

Jump to

Keyboard shortcuts

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