config

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

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

Go to latest
Published: Nov 19, 2023 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 Config

type Config struct {
	ServiceAddr string `yaml:"service_addr"`

	Domain string `yaml:"domain" validate:"required"`

	IMAP *Server `yaml:"imap"`
	SMTP *Server `yaml:"smtp"`
}

func NewConfig

func NewConfig(p string) (*Config, error)

type Server

type Server struct {
	Host     string `yaml:"server" validate:"required"`
	Port     int    `yaml:"port" validate:"required"`
	STARTTLS bool   `yaml:"starttls"`
}

Jump to

Keyboard shortcuts

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