collector

package
v0.0.0-...-5b6bd79 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SliceUniq

func SliceUniq(a []uuid.UUID) []uuid.UUID

SliceUniq removes duplicate values in given slice

Types

type ParamValidator

type ParamValidator func(context.Context, map[string]interface{}) error

type Receiver

type Receiver struct {
	FullName string
	EMail    string
}

func Comment

func Comment(ctx context.Context, authClient *authapi.Client, c *api.Client, collaboratorCollector auth.CollaboratorCollector, cID uuid.UUID) ([]Receiver, map[string]interface{}, error)

func User

func User(ctx context.Context, c *api.Client, userID uuid.UUID) ([]Receiver, map[string]interface{}, error)

func WorkItem

func WorkItem(ctx context.Context, authclient *authapi.Client, c *api.Client, collaboratorCollector auth.CollaboratorCollector, wiID uuid.UUID) ([]Receiver, map[string]interface{}, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL