summaryrefslogtreecommitdiff
path: root/websocket_target.go
diff options
context:
space:
mode:
Diffstat (limited to 'websocket_target.go')
-rw-r--r--websocket_target.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/websocket_target.go b/websocket_target.go
index 5ef7a6d..394d483 100644
--- a/websocket_target.go
+++ b/websocket_target.go
@@ -24,7 +24,7 @@ type WebSocketTarget struct {
// If its empty, it will generated by normalized the value of Name.
ID string
- Headers KeyValue
+ Headers KeyFormInput
// Params contains additional parameters to be passed when running
// the WebSocket handler.
@@ -32,7 +32,7 @@ type WebSocketTarget struct {
// the body. Its up to the user on how to use the Params inside the
// Run handler.
// This field is optional.
- Params KeyValue
+ Params KeyFormInput
Run WebSocketRunHandler `json:"-"`
}
@@ -45,10 +45,10 @@ func (wst *WebSocketTarget) init() (err error) {
wst.ID = generateID(wst.Name)
}
if wst.Headers == nil {
- wst.Headers = KeyValue{}
+ wst.Headers = KeyFormInput{}
}
if wst.Params == nil {
- wst.Params = KeyValue{}
+ wst.Params = KeyFormInput{}
}
return nil
}