factory

package
v0.0.0-...-48f5d39 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package factory is responsible for returning a concrete implemenation of a generic broker interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStrategy

func CreateStrategy(s StrategyType) generic.Strategy

CreateStrategy returns a concrete instance of generic.Broker interface, based on the StrategyType

Types

type StrategyType

type StrategyType int

StrategyType is an enumeration of available brokers

const (
	Reference StrategyType = iota
	Count                  // not a strategy, used to initiate an array of strategies
)

This is a list of all the available strategies

Jump to

Keyboard shortcuts

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