controllers

package
v0.0.0-...-8540621 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlacementCompiler

type PlacementCompiler struct {
	// contains filtered or unexported fields
}

PlacementCompiler is the object used to compile placement.json into valid pxl scripts.

func NewPlacementCompiler

func NewPlacementCompiler() *PlacementCompiler

NewPlacementCompiler creates a new compiler object.

func (*PlacementCompiler) PlacementToPxl

func (pc *PlacementCompiler) PlacementToPxl(jsonStr string) (string, error)

PlacementToPxl converts a JSON placement to a pxl script.

type PlacementCompilerConfig

type PlacementCompilerConfig struct {
	Spacing      string
	MainFuncName string
}

PlacementCompilerConfig is the config for the PlacementCompiler. This doesn't hold state because we may reuse the placement compiler for multiple compilations.

type Server

type Server struct {
	SeedUUID uuid.UUID
	// contains filtered or unexported fields
}

Server implements the GRPC Server for the scriptmgr service.

func NewServer

func NewServer(bundleBucket string, bundlePath string, sc stiface.Client) *Server

NewServer creates a new GRPC scriptmgr server.

func (*Server) GetLiveViewContents

GetLiveViewContents returns the pxl script, vis info, and metdata for a live view.

func (*Server) GetLiveViews

GetLiveViews returns a list of all available live views.

func (*Server) GetScriptContents

GetScriptContents returns the pxl string of the script.

func (*Server) GetScripts

GetScripts returns a list of all available scripts.

func (*Server) Start

func (s *Server) Start()

Start starts the store updater goroutine which checks for updates to the bundle.json.

Jump to

Keyboard shortcuts

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