udf

package
v0.11.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Functions map[string]FunctionConfig `toml:"functions"`
}

func NewConfig

func NewConfig() Config

func (Config) Validate

func (c Config) Validate() error

type FunctionConfig

type FunctionConfig struct {
	Prog    string            `toml:"prog"`
	Args    []string          `toml:"args"`
	Timeout toml.Duration     `toml:"timeout"`
	Env     map[string]string `toml:"env"`
}

type Service

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

func NewService

func NewService(c Config, l *log.Logger) *Service

func (*Service) Close

func (s *Service) Close() error

func (*Service) FunctionInfo

func (s *Service) FunctionInfo(name string) (kapacitor.UDFProcessInfo, bool)

func (*Service) FunctionList

func (s *Service) FunctionList() []string

func (*Service) Open

func (s *Service) Open() error

func (*Service) RefreshFunction

func (s *Service) RefreshFunction(name string) error

Jump to

Keyboard shortcuts

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