diff options
Diffstat (limited to 'websocket_target.go')
| -rw-r--r-- | websocket_target.go | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/websocket_target.go b/websocket_target.go index 394d483..6bf68e5 100644 --- a/websocket_target.go +++ b/websocket_target.go @@ -16,14 +16,6 @@ type WebSocketRunHandler func(rr *RunRequest) (interface{}, error) // WebSocketTarget define the target to test WebSocket service. // type WebSocketTarget struct { - // Name of target, required. - Name string - Hint string // Description about what this WebSocket target is doing. - - // ID of target, optional. - // If its empty, it will generated by normalized the value of Name. - ID string - Headers KeyFormInput // Params contains additional parameters to be passed when running @@ -35,6 +27,13 @@ type WebSocketTarget struct { Params KeyFormInput Run WebSocketRunHandler `json:"-"` + + // ID of target, optional. + // If its empty, it will generated by normalized the value of Name. + ID string + + Name string // Name of target, required. + Hint string // Description about what this WebSocket target is doing. } func (wst *WebSocketTarget) init() (err error) { |
