Documentation ¶
Index ¶
- func SliceUniq(a []uuid.UUID) []uuid.UUID
- type ParamValidator
- type Receiver
- func Comment(ctx context.Context, authClient *authapi.Client, c *api.Client, ...) ([]Receiver, map[string]interface{}, error)
- func User(ctx context.Context, c *api.Client, userID uuid.UUID) ([]Receiver, map[string]interface{}, error)
- func WorkItem(ctx context.Context, authclient *authapi.Client, c *api.Client, ...) ([]Receiver, map[string]interface{}, error)
- type ReceiverResolver
- func ConfiguredVars(config *configuration.Data, resolver ReceiverResolver) ReceiverResolver
- func NewCVEResolver(authClient *authapi.Client, witClient *api.Client) ReceiverResolver
- func NewCommentResolver(authclient *authapi.Client, c *api.Client) ReceiverResolver
- func NewUserResolver(c *api.Client) ReceiverResolver
- func NewWorkItemResolver(authclient *authapi.Client, c *api.Client) ReceiverResolver
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReceiverResolver ¶
type ReceiverResolver func(context.Context, string) (users []Receiver, templateValues map[string]interface{}, err error)
func ConfiguredVars ¶
func ConfiguredVars(config *configuration.Data, resolver ReceiverResolver) ReceiverResolver
func NewCVEResolver ¶
func NewCVEResolver(authClient *authapi.Client, witClient *api.Client) ReceiverResolver
func NewCommentResolver ¶
func NewCommentResolver(authclient *authapi.Client, c *api.Client) ReceiverResolver
func NewUserResolver ¶
func NewUserResolver(c *api.Client) ReceiverResolver
func NewWorkItemResolver ¶
func NewWorkItemResolver(authclient *authapi.Client, c *api.Client) ReceiverResolver
type Registry ¶
type Registry interface { Register(types.NotificationType, ReceiverResolver, ParamValidator) Get(types.NotificationType) (ReceiverResolver, bool) Validator(types.NotificationType) (ParamValidator, bool) Notifiers(types.NotificationType) []string }
func NewRegistry ¶
func NewRegistry() Registry
Click to show internal directories.
Click to hide internal directories.