cmd

package
v0.0.0-...-334b7ae Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type Config

type Config struct {
	Server   *ServerConfig   `toml:"server"`
	Database *DatabaseConfig `toml:"database"`
	Logging  *LoggingConfig  `toml:"logging"`
}

type CredentialConfig

type CredentialConfig struct {
	SmtpPass string `json:"smtp_pass"`
	ApiKey   string `json:"api_key"`
}

type DatabaseConfig

type DatabaseConfig struct {
	Path string `toml:"path"`
}

type HttpConfig

type HttpConfig struct {
	Listen   string `toml:"listen"`
	KeyFile  string `toml:"key_file"`
	CertFile string `toml:"cert_file"`
}

type LoggingConfig

type LoggingConfig struct {
	Filename   string `toml:"filename"`
	MaxSize    int    `toml:"max_size"`
	MaxBackups int    `toml:"max_backups"`
	MaxAge     int    `toml:"max_age"`
}

type ServerConfig

type ServerConfig struct {
	Smtp *SmtpConfig `toml:"smtp"`
	Http *HttpConfig `toml:"http"`
}

type SmtpConfig

type SmtpConfig struct {
	Listen      string `toml:"listen"`
	MaxMsgBytes int    `toml:"max_message_bytes"`
	KeyFile     string `toml:"key_file"`
	CertFile    string `toml:"cert_file"`
}

Jump to

Keyboard shortcuts

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