compute

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	DashboardSlug string
	WidgetID      string
	ExprID        string
	StateSnapshot map[string]any
}

Request is the compute evaluation request.

type Result

type Result struct {
	Value any
	Error string
}

Result is the compute evaluation result.

type Service

type Service struct{}

Service evaluates Starlark compute expressions.

func NewService

func NewService() *Service

NewService creates a new compute service.

func (*Service) Eval

func (s *Service) Eval(_ context.Context, req Request) Result

Eval evaluates a compute expression. Currently a stub.

Jump to

Keyboard shortcuts

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