config

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 7 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    redis.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