Documentation
¶
Index ¶
- func ConstantlyUpdateMainData(inputChannel <-chan StatusUpdate)
- type Data
- type Extruder
- type Fan
- type GcodeMove
- type HeaterBed
- type IdleTimeout
- type Objects
- type Param
- type Params
- type PrintStats
- type PrintStatsInfo
- type PrinterObjects
- type StatusUpdate
- type SubscribeRequest
- type Toolhead
- type Webhooks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstantlyUpdateMainData ¶
func ConstantlyUpdateMainData(inputChannel <-chan StatusUpdate)
Types ¶
type Data ¶
type Data struct {
Objects *PrinterObjects
}
func GetMasterData ¶
func GetMasterData() *Data
type GcodeMove ¶
type GcodeMove struct { SpeedFactor *float32 `json:"speed_factor"` Speed *float32 `json:"speed"` ExtrudeFactor *float32 `json:"extrude_factor"` AbsoluteCoordinates *bool `json:"absolute_coordinates"` AbsoluteExtrude *bool `json:"absolute_extrude"` HomingOrigin *[]float32 `json:"homing_origin"` Position *[]float32 `json:"position"` GcodePosition *[]float32 `json:"gcode_position"` }
type IdleTimeout ¶
type Objects ¶
type Objects struct { Webhooks *[]string `json:"webhooks"` GcodeMove *[]string `json:"gcode_move"` Toolhead *[]string `json:"toolhead"` Extruder *[]string `json:"extruder"` HeaterBed *[]string `json:"heater_bed"` Fan *[]string `json:"fan"` IdleTimeout *[]string `json:"idle_timeout"` PrintStats *[]string `json:"print_stats"` }
type Param ¶
type Param struct { Webhooks *Webhooks `json:"webhooks"` GcodeMove *GcodeMove `json:"gcode_move"` Toolhead *Toolhead `json:"toolhead"` Extruder *Extruder `json:"extruder"` HeaterBed *HeaterBed `json:"heater_bed"` Fan *Fan `json:"fan"` IdleTimeout *IdleTimeout `json:"idle_timeout"` PrintStats *PrintStats `json:"print_stats"` }
type PrintStats ¶
type PrintStatsInfo ¶
type PrintStatsInfo struct { TotalLayer *interface{} `json:"total_layer"` CurrentLayer *interface{} `json:"current_layer"` }
type PrinterObjects ¶
type PrinterObjects struct { Webhooks *Webhooks GcodeMove *GcodeMove Toolhead *Toolhead Extruder *Extruder HeaterBed *HeaterBed Fan *Fan IdleTimeout *IdleTimeout PrintStats *PrintStats }
type StatusUpdate ¶
type SubscribeRequest ¶
type SubscribeRequest struct { Jsonrpc string `json:"jsonrpc"` Method string `json:"method"` Params Params `json:"params"` Id string `json:"id"` }
func NewSubscribeRequest ¶
func NewSubscribeRequest() *SubscribeRequest
type Toolhead ¶
type Toolhead struct { HomedAxes *string `json:"homed_axes"` PrintTime *float32 `json:"print_time"` EstimatedPrintTime *float32 `json:"estimated_print_time"` Extruder *string `json:"extruder"` Position *[]float32 `json:"position"` MaxVelocity *float32 `json:"max_velocity"` MaxAccel *float32 `json:"max_accel"` MaxAccelToDecel *float32 `json:"max_accel_to_decel"` SquareCornerVelocity *float32 `json:"square_corner_velocity"` }
Click to show internal directories.
Click to hide internal directories.