collector

package
v0.0.0-...-df2fae3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

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 LocalRegistry

type LocalRegistry struct {
	// contains filtered or unexported fields
}

func (*LocalRegistry) Get

func (r *LocalRegistry) Get(nType string) (ReceiverResolver, bool)

func (*LocalRegistry) Register

func (r *LocalRegistry) Register(nType string, resolver ReceiverResolver)

type Receiver

type Receiver struct {
	FullName string
	EMail    string
}

func Comment

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

func WorkItem

func WorkItem(ctx context.Context, c *api.Client, 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 NewCommentResolver

func NewCommentResolver(c *api.Client) ReceiverResolver

func NewWorkItemResolver

func NewWorkItemResolver(c *api.Client) ReceiverResolver

type Registry

type Registry interface {
	Get(string) (ReceiverResolver, bool)
}

Jump to

Keyboard shortcuts

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