Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ServiceName is the name of the service
ServiceName = "iam-proxy"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string Port int LogLevel string IAM IAM Environment Environment HTTPTimeout time.Duration ShutdownTimeout time.Duration Metric Metric // Internal Logger *zap.SugaredLogger `ignored:"true"` }
Config for iam-proxy service.
type Environment ¶
type Environment string
Environment of kubernetes deployment.
const ( EnvDev Environment = "development" EnvTest Environment = "test" EnvStage Environment = "stage" EnvProd Environment = "production" )
Valid environments
type Metric ¶
type Metric struct { Enabled bool OtelAgentAddr string OpencensusAddr string // OpencensusReconnInterval represents the time interval, in seconds that // the OC Agent will attempt to reconnect. OpencensusReconnInterval int ReportingInterval time.Duration }
Metric for OpenCensus trace and metric collection
Click to show internal directories.
Click to hide internal directories.