Documentation
¶
Index ¶
- Constants
- func GenerateMessage(message []byte, messageType int) []byte
- func InitSubscribe(c *net.Conn) error
- func SendStruct(c *net.Conn, msgStruct any, messageType int) error
- type Client
- type IPCGetDWMClientPayload
- type IPCLayoutChangeEvent
- type IPCSubscribePayload
- type IPCTagChangeEvent
- type Monitor
- type Tag
- type TagChangeEventState
Constants ¶
View Source
const ( IPC_TYPE_RUN_COMMAND = 0 IPC_TYPE_GET_MONITORS = 1 IPC_TYPE_GET_TAGS = 2 IPC_TYPE_GET_LAYOUTS = 3 IPC_TYPE_GET_DWM_CLIENT = 4 IPC_TYPE_SUBSCRIBE = 5 IPC_TYPE_EVENT = 6 )
View Source
const HEADER_LEN = 12
View Source
const MAGIC_LEN = 7
Variables ¶
This section is empty.
Functions ¶
func GenerateMessage ¶
func InitSubscribe ¶ added in v0.1.2
Types ¶
type IPCGetDWMClientPayload ¶
type IPCGetDWMClientPayload struct {
Id int `json:"client_window_id"`
}
type IPCLayoutChangeEvent ¶
type IPCSubscribePayload ¶
type IPCTagChangeEvent ¶
type IPCTagChangeEvent struct {
Event struct {
MonitorNumber int `json:"monitor_number"`
OldState TagChangeEventState `json:"old_state"`
NewState TagChangeEventState `json:"new_state"`
} `json:"tag_change_event"`
}
type Monitor ¶
type Monitor struct {
Number int `json:"num"`
IsSelected bool `json:"is_selected"`
TagState TagChangeEventState `json:"tag_state"`
Layout struct {
Symbol struct {
Current string `json:"current"`
} `json:"symbol"`
} `json:"layout"`
Clients struct {
Selected int `json:"selected"`
}
}
type TagChangeEventState ¶
Click to show internal directories.
Click to hide internal directories.