18 lines
311 B
Go
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
|
|
}
|
|
}
|