Rename root, api and sdk module paths (imports, go.mod, go_package, ldflags, build scripts, buf configs) and regenerate protobuf/gateway code with the project's pinned toolchain. Wire identifiers unchanged. api gets a local replace for sdk; root/api/sdk require v0.1.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
32 lines
986 B
Go
32 lines
986 B
Go
// Copyright IBM Corp. 2020, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package controller
|
|
|
|
import (
|
|
"time"
|
|
|
|
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/cmd/base"
|
|
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/cmd/config"
|
|
)
|
|
|
|
type Config struct {
|
|
// The base Server object, containing things shared between Controllers and
|
|
// Workers
|
|
*base.Server
|
|
// The underlying configuration, passed in here to avoid duplicating values
|
|
// everywhere
|
|
RawConfig *config.Config
|
|
// If set, authorization checking occurrs but failures are ignored
|
|
DisableAuthorizationFailures bool
|
|
// Override worker auth CA certificate lifetime for testing
|
|
TestOverrideWorkerAuthCaCertificateLifetime time.Duration
|
|
// Reinitialize the roots at startup
|
|
TestWorkerAuthCaReinitialize bool
|
|
|
|
// This is derived from the config.Config. It tracks the state of the
|
|
// rate limiter's configuration, and is updated if the config changes via a
|
|
// SIGHUP.
|
|
rateLimiterConfig *rateLimiterConfig
|
|
}
|