config

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	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
	Rails                rails.Config
	EmbedNats            bool
	EmbeddedNats         enats.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) LoadPresets added in v1.3.0

func (c *Config) LoadPresets() 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