18 lines
421 B
Go
18 lines
421 B
Go
package gdax
|
|
|
|
const Subscribe = RequestType("subscribe")
|
|
const Unsubscribe = RequestType("unsubscribe")
|
|
|
|
type RequestType string
|
|
|
|
type Request struct {
|
|
Type RequestType `json:"type"`
|
|
ProductIds []string `json:"product_ids,omitempty"`
|
|
Channels []Channel `json:"channels,omitempty"`
|
|
}
|
|
|
|
type Channel struct {
|
|
Name string `json:"name,omitempty"`
|
|
ProductIds []string `json:"product_ids,omitempty"`
|
|
}
|