config

package
v0.0.0-...-ca8b2fb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalServerConfig ServerConfig
	GlobalEtcdConfig   EtcdConfig
)

Functions

This section is empty.

Types

type EtcdConfig

type EtcdConfig struct {
	Host string `json:"host"`
	Port string `json:"port"`
	Key  string `json:"key"`
}

type RedisConfig

type RedisConfig struct {
	Host     string `json:"host"`
	Port     string `json:"port"`
	Password string `json:"password"`
	Database int    `json:"database"`
}

type ServerConfig

type ServerConfig struct {
	Name         string      `json:"name"`
	Host         string      `json:"host"`
	Port         string      `json:"port"`
	Redis        RedisConfig `json:"redis"`
	OtelEndpoint string      `json:"otel_endpoint"`
}

Jump to

Keyboard shortcuts

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