refactor logging options

This commit is contained in:
Jeff
2019-09-17 15:52:35 +08:00
parent fa1e62f6ac
commit f61c5e09ba
20 changed files with 444 additions and 259 deletions

View File

@@ -0,0 +1,17 @@
package notification
type NotificationOptions struct {
Endpoint string
}
func NewNotificationOptions() *NotificationOptions {
return &NotificationOptions{
Endpoint: "",
}
}
func (s *NotificationOptions) ApplyTo(options *NotificationOptions) {
if s.Endpoint != "" {
options.Endpoint = s.Endpoint
}
}