sink

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint string
	Token    string

	License          string
	Licensor         string
	Subscription     string
	EnableGithub     bool
	EnableGithubEnt  bool
	EnableGitlab     bool
	EnableBitbucket  bool
	EnableStash      bool
	EnableGogs       bool
	EnableGitea      bool
	EnableAgents     bool
	EnableNomad      bool
	EnableKubernetes bool
}

Config configures a Datadog sink.

type Datadog

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

Datadog defines a no-op sink to datadog.

func New

func New(
	users core.UserStore,
	repos core.RepositoryStore,
	builds core.BuildStore,
	system core.System,
	config Config,
) *Datadog

New returns a Datadog sink.

func (*Datadog) Client

func (d *Datadog) Client() *http.Client

Client returns the http client. If no custom client is provided, the default client is used.

func (*Datadog) Start

func (d *Datadog) Start(ctx context.Context) error

Start starts the sink.

Jump to

Keyboard shortcuts

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