Documentation
¶
Overview ¶
Package server contains the gRPC server implementation.
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentConfig ¶ added in v0.4.0
type AgentConfig struct {
ServerConfig
AttestedTLS bool `env:"ATTESTED_TLS" envDefault:"false"`
}
func (AgentConfig) GetBaseConfig ¶ added in v0.4.0
func (a AgentConfig) GetBaseConfig() ServerConfig
type BaseConfig ¶ added in v0.4.0
type BaseConfig struct {
Host string `env:"HOST" envDefault:"localhost"`
Port string `env:"PORT" envDefault:"7001"`
ServerCAFile string `env:"SERVER_CA_CERTS" envDefault:""`
CertFile string `env:"SERVER_CERT" envDefault:""`
KeyFile string `env:"SERVER_KEY" envDefault:""`
ClientCAFile string `env:"CLIENT_CA_CERTS" envDefault:""`
}
type BaseServer ¶
type BaseServer struct {
Ctx context.Context
Cancel context.CancelFunc
Name string
Address string
Config ServerConfiguration
Logger *slog.Logger
Protocol string
}
type ServerConfig ¶ added in v0.4.0
type ServerConfig struct {
BaseConfig
}
func (ServerConfig) GetBaseConfig ¶ added in v0.4.0
func (s ServerConfig) GetBaseConfig() ServerConfig
type ServerConfiguration ¶ added in v0.4.0
type ServerConfiguration interface {
GetBaseConfig() ServerConfig
}
Click to show internal directories.
Click to hide internal directories.