config

package
v0.0.0-...-34056af Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

# @Author ww # @Time 2019/10/28 17:33 # @File dingtalk_config.go

# @Author ww # @Time 2019/10/15 13:54 # @File email_config.go

# @Author ww # @Time 2019/11/5 14:25 # @File sms_config.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DingtalkConfig

type DingtalkConfig struct {
	AppKey       string      `json:"app_key"`
	AppSecret    string      `json:"app_secret"`
	From         string      `json:"from"`
	To           string      `json:"to"`
	Agent_id     uint        `json:"agent_id"`
	Userid_list  string      `json:"userid_list"`
	Dept_id_list string      `json:"dept_id_list"`
	To_all_user  bool        `json:"to_all_user"`
	Msg          string      `json:"msg"`  // 消息模板文件
	Data         interface{} `json:"data"` // 消息数据
}

type EmailConfig

type EmailConfig struct {
	// Email address to notify.
	From         string      `yaml:"from,omitempty" json:"from,omitempty"`
	To           string      `yaml:"to,omitempty" json:"to,omitempty"`
	Cc           string      `yaml:"cc,omitempty" json:"cc,omitempty"`
	Bcc          string      `yaml:"bcc,omitempty" json:"bcc,omitempty"`
	Subject      string      `yaml:"Subject,omitempty" json:"subject"`
	Smarthost    HostPort    `yaml:"smarthost,omitempty" json:"smarthost,omitempty"`
	AuthUsername string      `yaml:"auth_username,omitempty" json:"auth_username,omitempty"`
	AuthPassword Secret      `yaml:"auth_password,omitempty" json:"auth_password,omitempty"`
	AuthSecret   Secret      `yaml:"auth_secret,omitempty" json:"auth_secret,omitempty"`
	HTML         string      `yaml:"html,omitempty" json:"html,omitempty"`
	Text         string      `yaml:"text,omitempty" json:"text,omitempty"`
	Data         interface{} `yaml:"data" json:"data"`
}

EmailConfig configures notifications via mail.

type HostPort

type HostPort struct {
	Host string
	Port int
}

func (*HostPort) String

func (h *HostPort) String() string

type Secret

type Secret string

type SmsConfig

type SmsConfig struct {
}

Jump to

Keyboard shortcuts

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