spray

package
v0.0.0-...-cca97c1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() map[string]Out

All returns all spray-types catalog

func IsRegistred

func IsRegistred(name string) bool

IsRegistred check spray registration

func Register

func Register(name string, o Out)

Register registers new spray output

Types

type Logger

type Logger interface {
	Errorf(format string, args ...interface{})
	Infof(format string, args ...interface{})
}

Logger describes methods for a logging process in Sprays

type Out

type Out interface {
	// Setups spray due configuration
	NewWithConfig(ctx context.Context, config ast.Node, logger Logger) (Sprayer, error)
}

Out is output factory for sprays

func Get

func Get(name string) (Out, error)

Get returns registred spray output from registry

type Sprayer

type Sprayer interface {
	//Spray message with spray
	Spray(msg []byte) error
}

Sprayer describes spray-output

Jump to

Keyboard shortcuts

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