Versions in this module Expand all Collapse all v0 v0.1.3 Apr 23, 2024 Changes in this version + var ConfigDecodeHook = mapstructure.ComposeDecodeHookFunc(BoolToBoolValueFunc(), StringToDurationValueFunc(), StringToStringValueFunc(), ...) + func BoolToBoolValueFunc() mapstructure.DecodeHookFunc + func Float64ToUintValueFunc() mapstructure.DecodeHookFunc + func Merge(dst, src *flag.FlagSet) + func StringToDurationValueFunc() mapstructure.DecodeHookFunc + func StringToStringValueFunc() mapstructure.DecodeHookFunc + func Usage(txt string, flags *flag.FlagSet) string + func Visit(path string, visitor VisitFn) error + type BoolValue struct + func (b *BoolValue) IsBoolFlag() bool + func (b *BoolValue) Merge(onto *bool) + func (b *BoolValue) Set(v string) error + func (b *BoolValue) String() string + type DurationValue struct + func (d *DurationValue) Merge(onto *time.Duration) + func (d *DurationValue) Set(v string) error + func (d *DurationValue) String() string + type HTTPFlags struct + func (f *HTTPFlags) APIClient() (*api.Client, error) + func (f *HTTPFlags) AddPartitionFlag(fs *flag.FlagSet) + func (f *HTTPFlags) AddPeerName() *flag.FlagSet + func (f *HTTPFlags) Addr() string + func (f *HTTPFlags) ClientFlags() *flag.FlagSet + func (f *HTTPFlags) Datacenter() string + func (f *HTTPFlags) MergeOntoConfig(c *api.Config) + func (f *HTTPFlags) MultiTenancyFlags() *flag.FlagSet + func (f *HTTPFlags) Namespace() string + func (f *HTTPFlags) Partition() string + func (f *HTTPFlags) PartitionFlag() *flag.FlagSet + func (f *HTTPFlags) PeerName() string + func (f *HTTPFlags) ReadTokenFile() (string, error) + func (f *HTTPFlags) ServerFlags() *flag.FlagSet + func (f *HTTPFlags) SetToken(v string) error + func (f *HTTPFlags) SetTokenFile(v string) error + func (f *HTTPFlags) Stale() bool + func (f *HTTPFlags) Token() string + func (f *HTTPFlags) TokenFile() string + type StringValue struct + func (s *StringValue) Merge(onto *string) + func (s *StringValue) Set(v string) error + func (s *StringValue) String() string + type UintValue struct + func (u *UintValue) Merge(onto *uint) + func (u *UintValue) Set(v string) error + func (u *UintValue) String() string + type Usager struct + Flags *flag.FlagSet + Usage string + func (u *Usager) String() string + type VisitFn func(path string) error