Documentation ¶
Index ¶
- func EnvGetIntOr(key string, fallback int) int
- func EnvGetOr(key string, fallback string) string
- func ErrCoalesce(errs ...error) error
- func MustJson(o interface{}) []byte
- func SysCallWait(signals ...os.Signal)
- func SysCallWaitDefault()
- func TplRender(writer io.Writer, bytes []byte, data interface{}) error
- type Consul
- type EqArgs
- func (a *EqArgs) ErrorMessages() string
- func (a *EqArgs) GetBoolDefault(key string, defaultValue bool) bool
- func (a *EqArgs) GetString(key string) string
- func (a *EqArgs) GetStrings(key string, sep string) []string
- func (a *EqArgs) Valid() bool
- func (a *EqArgs) ValidateInclusion(key string, values []string)
- func (a *EqArgs) ValidatePresence(keys ...string)
- type EqArgsInclusionValidator
- type EqArgsPresenceValidator
- type EqArgsValidator
- type HttpReq
- type Vault
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvGetIntOr ¶ added in v0.0.5
EnvGetIntOr returns env value if present otherwise returns fallback value.
func EnvGetOr ¶ added in v0.0.5
EnvGetOr returns env value if present otherwise returns fallback value.
func ErrCoalesce ¶
func SysCallWait ¶ added in v0.0.5
SysCallWait waits for syscalls (INT, TERM, ...)
func SysCallWaitDefault ¶ added in v0.0.5
func SysCallWaitDefault()
SysCallWaitDefault waits for INT and TERM signals.
Types ¶
type Consul ¶ added in v0.0.5
type Consul struct {
// contains filtered or unexported fields
}
func (*Consul) Deregister ¶ added in v0.0.5
type EqArgs ¶
type EqArgs struct { Raw map[string]string Errors []error // contains filtered or unexported fields }
func ParseEqArgs ¶
func (*EqArgs) ErrorMessages ¶ added in v0.0.5
func (*EqArgs) ValidateInclusion ¶ added in v0.0.5
func (*EqArgs) ValidatePresence ¶ added in v0.0.5
type EqArgsInclusionValidator ¶ added in v0.0.5
type EqArgsInclusionValidator struct {
// contains filtered or unexported fields
}
func (*EqArgsInclusionValidator) Valid ¶ added in v0.0.5
func (v *EqArgsInclusionValidator) Valid() bool
type EqArgsPresenceValidator ¶ added in v0.0.5
type EqArgsPresenceValidator struct {
// contains filtered or unexported fields
}
func (*EqArgsPresenceValidator) Valid ¶ added in v0.0.5
func (v *EqArgsPresenceValidator) Valid() bool
type EqArgsValidator ¶ added in v0.0.5
type EqArgsValidator interface {
Valid() bool
}
Click to show internal directories.
Click to hide internal directories.