Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationConfig ¶
type AuthorizationConfig struct { Audience string `env:"JWT_AUDIENCE, default=app-token-issuer"` BuildkiteOrganizationSlug string `env:"JWT_BUILDKITE_ORGANIZATION_SLUG, required"` IssuerURL string `env:"JWT_ISSUER_URL, default=https://agent.buildkite.com"` ConfigurationStatic string `env:"JWT_JWKS_STATIC"` }
type BuildkiteConfig ¶
type Config ¶
type Config struct { Authorization AuthorizationConfig Buildkite BuildkiteConfig Github GithubConfig Observe ObserveConfig Server ServerConfig }
type GithubConfig ¶
type ObserveConfig ¶
type ObserveConfig struct { SDKLogLevel string `env:"OBSERVE_OTEL_LOG_LEVEL, default=info"` Enabled bool `env:"OBSERVE_ENABLED, default=false"` MetricsEnabled bool `env:"OBSERVE_METRICS_ENABLED, default=true"` Type string `env:"OBSERVE_TYPE, default=grpc"` ServiceName string `env:"OBSERVE_SERVICE_NAME, default=chinmina-bridge"` TraceBatchTimeoutSeconds int `env:"OBSERVE_TRACE_BATCH_TIMEOUT_SECS, default=20"` MetricReadIntervalSeconds int `env:"OBSERVE_METRIC_READ_INTERVAL_SECS, default=60"` HttpTransportEnabled bool `env:"OBSERVE_HTTP_TRANSPORT_ENABLED, default=true"` HttpConnectionTraceEnabled bool `env:"OBSERVE_CONNECTION_TRACE_ENABLED, default=true"` }
type ServerConfig ¶
type ServerConfig struct { Port int `env:"SERVER_PORT, default=8080"` ShutdownTimeoutSeconds int `env:"SERVER_SHUTDOWN_TIMEOUT_SECS, default=25"` OutgoingHttpMaxIdleConns int `env:"SERVER_OUTGOING_MAX_IDLE_CONNS, default=100"` OutgoingHttpMaxConnsPerHost int `env:"SERVER_OUTGOING_MAX_CONNS_PER_HOST, default=20"` }
Click to show internal directories.
Click to hide internal directories.