mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
13 lines
237 B
Go
13 lines
237 B
Go
package entity
|
|
|
|
import "fmt"
|
|
|
|
type NotificationVariable struct {
|
|
Category string `json:"category"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
func (v *NotificationVariable) GetKey() string {
|
|
return fmt.Sprintf("${%s:%s}", v.Category, v.Name)
|
|
}
|