execmodel

package
v0.0.0-...-e637bcb Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MinimumTime = 0.01

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedbackMode

type FeedbackMode string
const (
	FeedbackModeEnabled  FeedbackMode = "enabled"
	FeedbackModeDisabled FeedbackMode = "disabled"
)

func ParseFeedbackMode

func ParseFeedbackMode(s string) (FeedbackMode, error)

func (FeedbackMode) String

func (m FeedbackMode) String() string

type Model

type Model struct {
	Resource ResourceMode
	Feedback FeedbackMode
}

func DefaultModel

func DefaultModel() Model

func ParseModel

func ParseModel(resourceMode string, feedbackMode string) (Model, error)

func (Model) String

func (m Model) String() string

func (Model) Validate

func (m Model) Validate() error

type ResourceMode

type ResourceMode string
const (
	ResourceModeFinite   ResourceMode = "finite"
	ResourceModeInfinite ResourceMode = "infinite"
)

func ParseResourceMode

func ParseResourceMode(s string) (ResourceMode, error)

func (ResourceMode) String

func (m ResourceMode) String() string

type Time

type Time float64

func (Time) ApproximateEqual

func (t Time) ApproximateEqual(b Time) bool

Jump to

Keyboard shortcuts

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