config

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 6 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 {
	zrpc.RpcServerConf
	DatabaseConf config.DatabaseConf
	RedisConf    config.RedisConf
}

type EmailConf

type EmailConf struct {
	AuthType  string
	EmailAddr string
	Password  string
	HostName  string
	Identify  string
	Secret    string
	Port      int
	TLS       bool
}

func (EmailConf) NewAuth

func (e EmailConf) NewAuth() *smtp.Auth

NewAuth creates the auth from config

func (EmailConf) NewClient

func (e EmailConf) NewClient() *smtp.Client

Jump to

Keyboard shortcuts

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