config

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID                   string
	Secret               string
	BroadcastKey         string
	SkipAuth             bool
	App                  node.Config
	RPC                  rpc.Config
	BrokerAdapter        string
	Broker               broker.Config
	Redis                rconfig.RedisConfig
	HTTPBroadcast        broadcast.HTTPConfig
	NATS                 nconfig.NATSConfig
	Host                 string
	Port                 int
	MaxConn              int
	BroadcastAdapter     string
	PubSubAdapter        string
	Path                 []string
	HealthPath           string
	Headers              []string
	Cookies              []string
	SSL                  server.SSLConfig
	WS                   ws.Config
	MaxMessageSize       int64
	DisconnectorDisabled bool
	DisconnectQueue      node.DisconnectQueueConfig
	LogLevel             string
	LogFormat            string
	Debug                bool
	Metrics              metrics.Config
	JWT                  identity.JWTConfig
	EmbedNats            bool
	EmbeddedNats         enats.Config
	SSE                  sse.Config
	Streams              streams.Config
	UserPresets          []string
}

Config contains main application configuration

func NewConfig added in v1.2.3

func NewConfig() Config

NewConfig returns a new empty config

func (Config) IsPublic added in v1.5.0

func (c Config) IsPublic() bool

func (*Config) LoadPresets added in v1.3.0

func (c *Config) LoadPresets(logger *slog.Logger) error

func (*Config) Presets added in v1.3.0

func (c *Config) Presets() []string

Jump to

Keyboard shortcuts

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