builder

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package builder defines builder resources (like logger and metrics) shared by jaeger components They are defined in this shared location so that if several components are wired into a single binary (e.g. a local container of complete Jaeger backend) they can all share the builder resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicOptions

type BasicOptions struct {
	// Logger is a generic logger used by most executables
	Logger *zap.Logger
	// MetricsFactory is the basic metrics factory used by most executables
	MetricsFactory metrics.Factory
	// Cassandra is the cassandra configuration used by most executables (if applicable)
	Cassandra *cascfg.Configuration
	// MemoryStore is the memory store (as reader and writer) that will be used if required
	MemoryStore *memory.Store
	// ElasticSearch is the elasticsearch configuration used
	ElasticSearch *escfg.Configuration
}

BasicOptions is a set of basic building blocks for most Jaeger executables

var Options BasicOptions

Options is a factory for all available Option's

func ApplyOptions

func ApplyOptions(opts ...Option) BasicOptions

ApplyOptions takes a set of options and creates a populated BasicOptions struct

func (BasicOptions) CassandraOption

func (BasicOptions) CassandraOption(cassandra *cascfg.Configuration) Option

CassandraOption creates an Option that adds Cassandra configuration.

func (BasicOptions) ElasticSearchOption added in v0.5.2

func (BasicOptions) ElasticSearchOption(elastic *escfg.Configuration) Option

ElasticSearchOption creates an Option that adds ElasticSearch configuration.

func (BasicOptions) LoggerOption

func (BasicOptions) LoggerOption(logger *zap.Logger) Option

LoggerOption creates an Option that initializes the logger

func (BasicOptions) MemoryStoreOption

func (BasicOptions) MemoryStoreOption(memoryStore *memory.Store) Option

MemoryStoreOption creates an Option that adds a memory store

func (BasicOptions) MetricsFactoryOption

func (BasicOptions) MetricsFactoryOption(metricsFactory metrics.Factory) Option

MetricsFactoryOption creates an Option that initializes the MetricsFactory

type Option

type Option func(c *BasicOptions)

Option is a function that sets some option on StorageBuilder.

Jump to

Keyboard shortcuts

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