Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GracefulContext ¶
Types ¶
type Configuration ¶ added in v0.3.0
type Configuration interface { Scan(key string, target any) error MustScan(key string, target any, provide func() any) Get(key string) Configuration Exists() bool AsString(defaultValue string) string AsDuration(defaultValue time.Duration) time.Duration AsInt64(defaultValue int64) int64 AsFloat64(defaultValue float64) float64 AsBoolean(defaultValue bool) bool AsMap(defaultValue map[string]Configuration) map[string]Configuration AsArray(defaultValue []Configuration) []Configuration AsUrlValues(defaultValue url.Values) url.Values }
func FromJsonRemote ¶
func FromJsonRemote(url string) (res Configuration, err error)
func FromJsonRemoteCtx ¶ added in v0.3.0
func FromJsonRemoteCtx(ctx context.Context, url string) (res Configuration, err error)
Click to show internal directories.
Click to hide internal directories.