localenv

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEnv

func NewEnv(basePath string, initScripts string, args []string) (*luabox.Environment, error)

Types

type Fs

type Fs struct {
	BaseDir string
}

func (*Fs) Delete

func (f *Fs) Delete(filePath string) error

func (*Fs) GetReader

func (f *Fs) GetReader(filePath string) (io.ReadCloser, error)

func (*Fs) GetWriter

func (f *Fs) GetWriter(filePath string) (io.WriteCloser, error)

func (*Fs) List

func (f *Fs) List(filePath string) ([]luabox.FileInfo, error)

type ZapLog

type ZapLog struct {
	Zap *zap.SugaredLogger
}

func NewZapLog

func NewZapLog(cfg zap.Config) (*ZapLog, error)

func (*ZapLog) Debug

func (z *ZapLog) Debug(msg string, context map[string]interface{})

func (*ZapLog) Error

func (z *ZapLog) Error(msg string, context map[string]interface{})

func (*ZapLog) Fatal

func (z *ZapLog) Fatal(msg string, context map[string]interface{})

func (*ZapLog) Info

func (z *ZapLog) Info(msg string, context map[string]interface{})

func (*ZapLog) Warn

func (z *ZapLog) Warn(msg string, context map[string]interface{})

func (*ZapLog) WithFields

func (z *ZapLog) WithFields(context map[string]interface{}) luabox.Log

Jump to

Keyboard shortcuts

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