Documentation ¶
Index ¶
- Constants
- Variables
- func GetLogger() log.Logger
- func NewContext(ctx context.Context, requiredFeature string) context.Context
- func NewDiscovery() (registry.Discovery, error)
- func NewLeakyBucketMiddleware(rate int) middleware.Middleware
- func NewNodeFilter() selector.NodeFilter
- func NewRegistrar() (registry.Registrar, error)
- func NewStreamMiddlewareJwt(auth *libauth.Auth) func(ctx context.Context) (context.Context, error)
- func NewValidator() (middleware.Middleware, error)
- type Env
- type Flags
- type HealthChecker
- type InherentSettings
- type Settings
Constants ¶
View Source
const DiscoveryAddress = "localhost:8500"
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewDiscovery, NewRegistrar, NewNodeFilter)
Functions ¶
func NewContext ¶ added in v0.1.0
func NewDiscovery ¶ added in v0.1.0
func NewLeakyBucketMiddleware ¶ added in v0.2.1
func NewLeakyBucketMiddleware(rate int) middleware.Middleware
func NewNodeFilter ¶ added in v0.1.0
func NewNodeFilter() selector.NodeFilter
func NewRegistrar ¶ added in v0.1.0
func NewStreamMiddlewareJwt ¶ added in v0.1.3
func NewValidator ¶ added in v0.1.9
func NewValidator() (middleware.Middleware, error)
Types ¶
type HealthChecker ¶ added in v0.2.0
type HealthChecker struct {
// contains filtered or unexported fields
}
func NewHealthChecker ¶ added in v0.2.0
func NewHealthChecker(serviceName string) (*HealthChecker, error)
func (*HealthChecker) GetAliveInstances ¶ added in v0.2.0
func (hc *HealthChecker) GetAliveInstances() ([]*api.ServiceEntry, error)
type InherentSettings ¶ added in v0.0.10
type Settings ¶ added in v0.0.10
type Settings struct { InherentSettings Flags Version string ProtoVersion string BuildDate string SourceCodeAddress string // contains filtered or unexported fields }
func NewAppSettings ¶ added in v0.0.10
func (*Settings) LoadConfig ¶ added in v0.0.10
func (a *Settings) LoadConfig(conf interface{})
Click to show internal directories.
Click to hide internal directories.