pythonservice

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 14 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"`
}

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