config

package
v0.0.0-...-4cc9216 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalEtcdConfig   EtcdConfig
	GlobalServerConfig Config
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Name      string       `json:"name"`
	Server    ServerConfig `json:"server"`
	MinioInfo MinioConfig  `json:"minio"`
	Stream    StreamConfig `json:"stream"`
}

type EtcdConfig

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

type MinioConfig

type MinioConfig struct {
	Endpoint string `json:"endpoint"`
	ID       string `json:"id"`
	Secret   string `json:"secret"`
	Bucket   string `json:"bucket"`
}

type ServerConfig

type ServerConfig struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

type StreamConfig

type StreamConfig struct {
	Address string `json:"address"`
}

Jump to

Keyboard shortcuts

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