Documentation ¶
Index ¶
- Constants
- Variables
- func CheckIfSimIsRunning() bool
- type ApiConfig
- type Header
- type Irsdk
- func (irsdk *Irsdk) Close()
- func (irsdk *Irsdk) DumpHeaders()
- func (irsdk *Irsdk) GetData() bool
- func (irsdk *Irsdk) GetValue(name string) (any, error)
- func (irsdk *Irsdk) GetValueKeys() []string
- func (irsdk *Irsdk) GetYaml() (*yaml.IrsdkYaml, error)
- func (irsdk *Irsdk) GetYamlString() string
- func (irsdk *Irsdk) WaitForValidData() bool
- func (irsdk *Irsdk) WriteDump(w io.Writer) (int, error)
- type MMap
- type VarBuffer
- type VarHeader
- type VarType
Constants ¶
View Source
const ( SimStatusUrl = "http://127.0.0.1:32034/get_sim_status?object=simStatus" DataValidEventName = "Local\\IRSDKDataValidEvent" )
View Source
const ( MemMapFileSize = 1164 * 1024 MemMapFile = "Local\\IRSDKMemMapFileName" IrsdkMaxBufs = 3 IrsdkMaxString = 32 IrsdkMaxDesc = 64 )
Variables ¶
View Source
var ErrInvalidDataRequest = errors.New("Invalid data request")
Functions ¶
func CheckIfSimIsRunning ¶
func CheckIfSimIsRunning() bool
Types ¶
type Irsdk ¶
type Irsdk struct { SimIsRunning bool // contains filtered or unexported fields }
func NewIrsdkWithConfig ¶
func NewIrsdkWithFile ¶
func (*Irsdk) DumpHeaders ¶
func (irsdk *Irsdk) DumpHeaders()
func (*Irsdk) GetData ¶
returns true if new valid data is copied from iRacing telemetry to this Irdsk struct
func (*Irsdk) GetValueKeys ¶
func (*Irsdk) GetYamlString ¶
func (*Irsdk) WaitForValidData ¶
type VarHeader ¶
type VarHeader struct { Type VarType Offset int32 Count int32 CountAsTime bool Pad [3]byte Name [IrsdkMaxString]byte Desc [IrsdkMaxDesc]byte Unit [IrsdkMaxString]byte }
Click to show internal directories.
Click to hide internal directories.