max: add filters field to the auth message

This commit is contained in:
c9s 2022-05-25 13:51:24 +08:00
parent 0ee23e0ce4
commit eccee460ca
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 6 additions and 7 deletions

View File

@ -1,11 +1,12 @@
package max
type AuthMessage struct {
Action string `json:"action"`
APIKey string `json:"apiKey"`
Nonce int64 `json:"nonce"`
Signature string `json:"signature"`
ID string `json:"id"`
Action string `json:"action,omitempty"`
APIKey string `json:"apiKey,omitempty"`
Nonce int64 `json:"nonce,omitempty"`
Signature string `json:"signature,omitempty"`
ID string `json:"id,omitempty"`
Filters []string `json:"filters,omitempty"`
}
type AuthEvent struct {

View File

@ -29,5 +29,3 @@ type WebsocketCommand struct {
Subscriptions []Subscription `json:"subscriptions,omitempty"`
}
var SubscribeAction = "subscribe"
var UnsubscribeAction = "unsubscribe"