ray

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	LockActive    = "active"
	LockContinued = "continued"
	LockStopped   = "stopped"
)

Pause states of a ray()->pause() lock, as the UI sees them in the create_lock payload's content.state.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStorer added in v2.14.0

type EventStorer interface {
	HandleIncoming(ctx context.Context, inc *event.Incoming) error
}

EventStorer stores and broadcasts events (the HTTP event service).

type Module

type Module struct {
	module.BaseModule
	// contains filtered or unexported fields
}

func New

func New() *Module

func (*Module) HTTPHandler

func (m *Module) HTTPHandler() module.HTTPIngestionHandler

func (*Module) Name

func (m *Module) Name() string

func (*Module) PreviewMapper

func (m *Module) PreviewMapper() event.PreviewMapper

func (*Module) RegisterProtectedRoutes added in v2.14.0

func (m *Module) RegisterProtectedRoutes(mux *http.ServeMux, protect func(http.Handler) http.Handler)

RegisterProtectedRoutes adds the UI's Continue / Stop execution, called over the WebSocket RPC as post:api/ray/locks/{name}.

func (*Module) RegisterRoutes

func (m *Module) RegisterRoutes(mux *http.ServeMux, store event.Store)

func (*Module) SetEventService added in v2.14.0

func (m *Module) SetEventService(es EventStorer)

SetEventService lets the module save a pause's state into its event.

func (*Module) Type

func (m *Module) Type() string

Jump to

Keyboard shortcuts

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