lua

package module
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 12 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

func RegisterErrors

func RegisterErrors(b *binder.Binder)

func ToError

func ToError(e error) error

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 ErrInternal

type ErrInternal string

func (ErrInternal) Error

func (e ErrInternal) Error() string

type ErrInternalHTTP

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

func (ErrInternalHTTP) Error

func (e ErrInternalHTTP) Error() string

func (ErrInternalHTTP) StatusCode

func (e ErrInternalHTTP) StatusCode() int

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