Documentation
¶
Overview ¶
Package common contains utility code that is common between HTTP and RPC interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( ProvideBusyLatch, ProvideVHostMap, )
Set is used by wire.
Functions ¶
This section is empty.
Types ¶
type BusyLatch ¶
BusyLatch holds a latch.Counter when there is an active request.
func ProvideBusyLatch ¶
ProvideBusyLatch is called by wire.
type Config ¶
type Config struct {
AssumeSecure bool // Treat all incoming connections as though they were secure.
BindAddr string // The network address to bind the API to.
CertBundle string // A path to a certificate bundle file.
DebugAddr string // If set serve additional debugging endpoints.
GenerateSelfSigned bool // If true, a self-signed certificate will be created.
GracePeriod time.Duration // The time to allow connections to drain.
PrivateKey string // A path to a private key file.
OIDC struct {
ClientID string
ClientSecret string
Domains []string // Allowable domains for provisioning
Issuer string // OIDC discovery URL
}
}
Config contains all of the flag-worthy configuration for a Server.
type VHostMap ¶
type VHostMap struct {
// contains filtered or unexported fields
}
VHostMap resolves hostnames against the virtual-host configuration in order to return the relevant VHost entry into calling contexts.
func ProvideVHostMap ¶
func ProvideVHostMap( ctx context.Context, logger *log.Logger, vhosts vhost.VHostsServer, ) (*VHostMap, func(), error)
ProvideVHostMap is called by wire.
Click to show internal directories.
Click to hide internal directories.