Files
kubesphere/pkg/simple/client/notification/options.go
2019-09-17 16:00:54 +08:00

18 lines
311 B
Go

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
}
}