config

package
v0.0.0-...-378a548 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupLogger

func SetupLogger(l Log) ([]func() error, error)

Types

type Etcd

type Etcd struct {
	Endpoints []string `json:"endpoints" toml:"endpoints"`
}

func (*Etcd) String

func (c *Etcd) String() string

type Log

type Log struct {
	DisableTimestamp bool   `json:"disable-timestamp" toml:"disable-timestamp"`
	Level            string `json:"level" toml:"level"`
	Format           string `json:"format" toml:"format"`
	MaxSize          int    `json:"maxsize" toml:"maxsize"`
	MaxDays          int    `toml:"max-days" json:"max-days"`
	MaxBackups       int    `toml:"max-backups" json:"max-backups"`
	Compress         bool   `toml:"compress" json:"compress"`
}

func (*Log) String

func (c *Log) String() string

type MySQL

type MySQL struct {
	DSN     string `json:"dsn" toml:"dsn"`
	MinOpen int    `json:"min-open" toml:"min-open"`
	MaxOpen int    `json:"max-open" toml:"max-open"`
}

func (*MySQL) String

func (m *MySQL) String() string

type Opentrace

type Opentrace struct {
	Enable bool   `json:"enable" toml:"enable"`
	DSN    string `json:"dsn" toml:"dsn"`
}

func (*Opentrace) String

func (c *Opentrace) String() string

type Server

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

func (*Server) String

func (c *Server) String() string

Jump to

Keyboard shortcuts

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