Documentation ¶
Index ¶
- type PlacementCompiler
- type PlacementCompilerConfig
- type Server
- func (s *Server) GetLiveViewContents(ctx context.Context, req *scriptmgrpb.GetLiveViewContentsReq) (*scriptmgrpb.GetLiveViewContentsResp, error)
- func (s *Server) GetLiveViews(ctx context.Context, req *scriptmgrpb.GetLiveViewsReq) (*scriptmgrpb.GetLiveViewsResp, error)
- func (s *Server) GetScriptContents(ctx context.Context, req *scriptmgrpb.GetScriptContentsReq) (*scriptmgrpb.GetScriptContentsResp, error)
- func (s *Server) GetScripts(ctx context.Context, req *scriptmgrpb.GetScriptsReq) (*scriptmgrpb.GetScriptsResp, error)
- func (s *Server) Start()
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 ¶
PlacementCompilerConfig is the config for the PlacementCompiler. This doesn't hold state because we may reuse the placement compiler for multiple compilations.
type Server ¶
Server implements the GRPC Server for the scriptmgr service.
func (*Server) GetLiveViewContents ¶
func (s *Server) GetLiveViewContents(ctx context.Context, req *scriptmgrpb.GetLiveViewContentsReq) (*scriptmgrpb.GetLiveViewContentsResp, error)
GetLiveViewContents returns the pxl script, vis info, and metdata for a live view.
func (*Server) GetLiveViews ¶
func (s *Server) GetLiveViews(ctx context.Context, req *scriptmgrpb.GetLiveViewsReq) (*scriptmgrpb.GetLiveViewsResp, error)
GetLiveViews returns a list of all available live views.
func (*Server) GetScriptContents ¶
func (s *Server) GetScriptContents(ctx context.Context, req *scriptmgrpb.GetScriptContentsReq) (*scriptmgrpb.GetScriptContentsResp, error)
GetScriptContents returns the pxl string of the script.
func (*Server) GetScripts ¶
func (s *Server) GetScripts(ctx context.Context, req *scriptmgrpb.GetScriptsReq) (*scriptmgrpb.GetScriptsResp, error)
GetScripts returns a list of all available scripts.