builtin

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultWorld []byte
View Source
var ServerURL string = "localhost:50051"

Functions

func BuiltinClientConn

func BuiltinClientConn() (*grpc.ClientConn, error)

func BuiltinDialer

func BuiltinDialer() grpc.DialOption

func GetBuiltinListener

func GetBuiltinListener() *bufconn.Listener

func Register

func Register(name string, run func(ctx context.Context, logger *slog.Logger, serverURL string) error)

func StartAll

func StartAll(ctx context.Context, serverURL string)

Types

type Builtin

type Builtin struct {
	Name string
	Run  func(ctx context.Context, logger *slog.Logger, serverURL string) error
}

type Permissions

type Permissions struct {
	AllowLocalSerial bool
}

Permissions controls which local resources builtins are allowed to access. Set before calling StartAll.

var LocalPermissions Permissions

Directories

Path Synopsis
Package controller provides a framework for managing config-driven connectors.
Package controller provides a framework for managing config-driven connectors.

Jump to

Keyboard shortcuts

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