pythonservice

package
v1.2.3-hotfix-20240916 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(cfg ClientConfig) (*Client, error)

func (*Client) Language

func (c *Client) Language() string

func (*Client) Run

func (c *Client) Run(ctx context.Context, request *udf.Request, pkgReader udf.PkgReader) (*udf.Response, error)

type ClientConfig

type ClientConfig struct {
	ServerAddress string `toml:"server-address"`
}

func (*ClientConfig) Validate

func (c *ClientConfig) Validate() error

type Config

type Config struct {
	UUID    string `toml:"uuid"`
	Address string `toml:"address"`
	// Path code path
	Path string `toml:"path"`
	// Python is the python executable path, optional, default to 'python'
	Python string `toml:"python"`
}

func (*Config) Validate

func (c *Config) Validate() error

type PythonUdfServer

type PythonUdfServer interface {
	Start() error
	Close() error
}

func NewService

func NewService(cfg Config) (PythonUdfServer, error)

Jump to

Keyboard shortcuts

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