refactor logging options
This commit is contained in:
17
pkg/simple/client/alerting/options.go
Normal file
17
pkg/simple/client/alerting/options.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package alerting
|
||||
|
||||
type AlertingOptions struct {
|
||||
Endpoint string
|
||||
}
|
||||
|
||||
func NewAlertingOptions() *AlertingOptions {
|
||||
return &AlertingOptions{
|
||||
Endpoint: "",
|
||||
}
|
||||
}
|
||||
|
||||
func (s *AlertingOptions) ApplyTo(options *AlertingOptions) {
|
||||
if s.Endpoint != "" {
|
||||
options.Endpoint = s.Endpoint
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user