service

package
v0.0.1-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilConfig                     = errors.New("nil config")
	ErrTLSClientCertsDirNotSpecified = errors.New("client certs dir not specified, while mTLS enabled")
	ErrTLSServerCertPathNotSpecified = errors.New("server cert path not specified")
	ErrTLSServerKeyPathNotSpecified  = errors.New("server cert path not specified")

	NextProtos = []string{version.Fujin1}
)
View Source
var (
	Version string
)

Functions

func RunCLI

func RunCLI(ctx context.Context)

Types

type Config

type Config struct {
	Fujin         FujinConfig          `yaml:"fujin"`
	Connectors    connectors.Config    `yaml:"connectors"`
	Observability observability.Config `yaml:"observability"`
}

type FujinConfig

type FujinConfig struct {
	Disabled              bool          `yaml:"disabled"`
	Addr                  string        `yaml:"addr"`
	WriteDeadline         time.Duration `yaml:"write_deadline"`
	ForceTerminateTimeout time.Duration `yaml:"force_terminate_timeout"`
	PingInterval          time.Duration `yaml:"ping_interval"`
	PingTimeout           time.Duration `yaml:"ping_timeout"`
	PingStream            bool          `yaml:"ping_stream"`
	PingMaxRetries        int           `yaml:"ping_max_retries"`
	TLS                   TLSConfig     `yaml:"tls"`
	QUIC                  QUICConfig    `yaml:"quic"`
}

type QUICConfig

type QUICConfig struct {
	MaxIncomingStreams   int64         `yaml:"max_incoming_streams"`
	KeepAlivePeriod      time.Duration `yaml:"keepalive_period"`
	HandshakeIdleTimeout time.Duration `yaml:"handshake_idle_timeout"`
	MaxIdleTimeout       time.Duration `yaml:"max_idle_timeout"`
}

type TLSConfig

type TLSConfig struct {
	ClientCertsDir    string `yaml:"client_certs_dir"`
	ServerCertPEMPath string `yaml:"server_cert_pem_path"`
	ServerKeyPEMPath  string `yaml:"server_key_pem_path"`
	MTLSEnabled       bool   `yaml:"mtls_enabled"`
}

Jump to

Keyboard shortcuts

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