devlopment branch (#1736)

This commit is contained in:
zryfish
2020-01-02 20:52:00 +08:00
committed by GitHub
parent ff0ffe8650
commit eceadec69c
440 changed files with 61524 additions and 3699 deletions

View File

@@ -1,16 +1,16 @@
package alerting
type AlertingOptions struct {
type Options struct {
Endpoint string `json:"endpoint" yaml:"endpoint"`
}
func NewAlertingOptions() *AlertingOptions {
return &AlertingOptions{
func NewAlertingOptions() *Options {
return &Options{
Endpoint: "",
}
}
func (s *AlertingOptions) ApplyTo(options *AlertingOptions) {
func (s *Options) ApplyTo(options *Options) {
if options == nil {
options = s
return