conf

package
v0.0.0-...-1d5bf40 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	GRPC  GRPC        `mapstructure:"grpc"`
	Log   Log         `mapstructure:"log"`
	Redis Redis       `mapstructure:"redis"`
	DB    dbx.Options `mapstructure:"db"`

	Version   string `mapstructure:"_"`
	BuildTime string `mapstructure:"_"`
}

type GRPC

type GRPC struct {
	Address       string `mapstructure:"address"`
	MaxRecv       int    `mapstructure:"maxRecv"`
	MaxSend       int    `mapstructure:"maxSend"`
	ReadBuffer    int    `mapstructure:"readBuffer"`
	WriteBuffer   int    `mapstructure:"writeBuffer"`
	MaxHeaderSize uint32 `mapstructure:"maxHeaderSize"`
	TLS           struct {
		Cert string `mapstructure:"cert"`
		Key  string `mapstructure:"key"`
	} `mapstructure:"tls"`
}

type Log

type Log struct {
	Filename string     `mapstructure:"filename"`
	Prompt   string     `mapstructure:"-"`
	Level    slog.Level `mapstructure:"level"`
	Format   string     `mapstructure:"format"`
	Source   bool       `mapstructure:"source"`
	Color    bool       `mapstructure:"color"`
}

type Redis

type Redis struct {
	Address      string        `mapstructure:"address"`
	Password     string        `mapstructure:"password"`
	WriteTimeout time.Duration `mapstructure:"writeTimeout"`
	ReadTimeout  time.Duration `mapstructure:"readTimeout"`
}

Jump to

Keyboard shortcuts

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