udf

package
v1.3.0-rc2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2017 License: MIT Imports: 10 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 {
	// General config
	Timeout toml.Duration `toml:"timeout"`

	// Config for connecting to domain socket
	Socket string `toml:"socket"`

	// Config for creating process
	Prog string            `toml:"prog"`
	Args []string          `toml:"args"`
	Env  map[string]string `toml:"env"`
}

func (FunctionConfig) Validate added in v0.13.0

func (c FunctionConfig) Validate() error

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) Create added in v0.13.0

func (s *Service) Create(
	name string,
	l *log.Logger,
	abortCallback func(),
) (udf.Interface, error)

func (*Service) Info added in v0.13.0

func (s *Service) Info(name string) (udf.Info, bool)

func (*Service) List added in v0.13.0

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

func (*Service) Open

func (s *Service) Open() error

func (*Service) Refresh added in v0.13.0

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

Jump to

Keyboard shortcuts

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