lua

package module
v0.0.0-...-c2ed796 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

krakend-lua

a lua interpreter for the KrakenD framework

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoExtraConfig    = errors.New("no extra config")
	ErrWrongExtraConfig = errors.New("wrong extra config")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Sources       []string
	PreCode       string
	PostCode      string
	SkipNext      bool
	AllowOpenLibs bool
	SourceLoader  SourceLoader
}

func Parse

func Parse(l logging.Logger, e config.ExtraConfig, namespace string) (Config, error)

func (*Config) Get

func (c *Config) Get(k string) (string, bool)

type ErrUnknownSource

type ErrUnknownSource string

func (ErrUnknownSource) Error

func (e ErrUnknownSource) Error() string

type ErrWrongChecksum

type ErrWrongChecksum struct {
	Source, Actual, Expected string
}

func (ErrWrongChecksum) Error

func (e ErrWrongChecksum) Error() string

type ErrWrongChecksumType

type ErrWrongChecksumType string

func (ErrWrongChecksumType) Error

func (e ErrWrongChecksumType) Error() string

type SourceLoader

type SourceLoader interface {
	Get(string) (string, bool)
}

Directories

Path Synopsis
gin
mux

Jump to

Keyboard shortcuts

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