Files
kubesphere/pkg/simple/client/notification/options.go
2019-09-23 14:30:48 +08:00

23 lines
359 B
Go

package notification
type NotificationOptions struct {
Endpoint string
}
func NewNotificationOptions() *NotificationOptions {
return &NotificationOptions{
Endpoint: "",
}
}
func (s *NotificationOptions) ApplyTo(options *NotificationOptions) {
if options == nil {
options = s
return
}
if s.Endpoint != "" {
options.Endpoint = s.Endpoint
}
}