server

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config, fileWatcher *fsnotify.Watcher, logger log.Logger, opts ...grpc.ServerOption) (*server.Server, error)

Types

type Config

type Config struct {
	Addr              string                         `yaml:"address" json:"address"`
	EnforcementPolicy server.EnforcementPolicyConfig `yaml:"enforcementPolicy" json:"enforcementPolicy"`
	KeepAlive         server.KeepAliveConfig         `yaml:"keepAlive" json:"keepAlive"`
	TLS               TLSConfig                      `yaml:"tls" json:"tls"`
}

func (*Config) Validate

func (c *Config) Validate() error

type TLSConfig

type TLSConfig struct {
	Enabled            bool `yaml:"enabled" json:"enabled"`
	certManager.Config `yaml:",inline"`
}

func (*TLSConfig) Validate

func (c *TLSConfig) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL