python

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option = func(*Python)

func WithPython

func WithPython(path string) Option

func WithYDLLite

func WithYDLLite(v bool) Option

func WithYDLUpdateInterval

func WithYDLUpdateInterval(interval time.Duration) Option

func WithYDLVersion

func WithYDLVersion(v string) Option

type Python

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

func New

func New(root string, opts ...Option) *Python

func (*Python) Close

func (py *Python) Close()

func (*Python) Init

func (py *Python) Init(ctx context.Context) error

func (*Python) RunScript

func (py *Python) RunScript(ctx context.Context, result interface{}, args ...string) error

type ScriptError

type ScriptError struct {
	ErrorText string `json:"error"`
	Reason    string `json:"reason"`
}

func (*ScriptError) Error

func (se *ScriptError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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