mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Develop (#250)
This commit is contained in:
7
lib/messages/calldata.go
Normal file
7
lib/messages/calldata.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package messages
|
||||
|
||||
// CallData represents a call to a Go function/method
|
||||
type CallData struct {
|
||||
BindingName string `json:"bindingName"`
|
||||
Data string `json:"data,omitempty"`
|
||||
}
|
||||
7
lib/messages/eventdata.go
Normal file
7
lib/messages/eventdata.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package messages
|
||||
|
||||
// EventData represents an event sent from the frontend
|
||||
type EventData struct {
|
||||
Name string `json:"name"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
7
lib/messages/logdata.go
Normal file
7
lib/messages/logdata.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package messages
|
||||
|
||||
// LogData represents a call to log from the frontend
|
||||
type LogData struct {
|
||||
Level string `json:"level"`
|
||||
Message string `json:"string"`
|
||||
}
|
||||
Reference in New Issue
Block a user