event

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: BSD-3-Clause Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes event system

func DequeueEvent

func DequeueEvent()

DequeueEvent runs in a goroutine and dequeue event from cache

func Initialize

func Initialize(k KafkaConfig) error

Initialize initializes event system

func Publish

func Publish(payload interface{})

Publish sends a event to a queue func Publish(event sdk.Event, eventType string) {

func PublishActionBuild

func PublishActionBuild(pb *sdk.PipelineBuild, ab *sdk.ActionBuild)

PublishActionBuild sends a actionBuild event

func PublishPipelineBuild

func PublishPipelineBuild(db database.QueryExecuter, pb *sdk.PipelineBuild, previous *sdk.PipelineBuild)

PublishPipelineBuild sends a pipelineBuild event

func Status

func Status() string

Status returns Event status

Types

type Broker

type Broker interface {
	// contains filtered or unexported methods
}

Broker event typed

type KafkaClient

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

KafkaClient enbeddes the Kafka connecion

type KafkaConfig

type KafkaConfig struct {
	Enabled         bool
	BrokerAddresses string
	User            string
	Password        string
	Topic           string
}

KafkaConfig handles all config to connect to Kafka

Jump to

Keyboard shortcuts

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