You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package wire
|
|
|
|
|
|
|
|
type Request struct {
|
|
|
|
Seq int `json:"seq"`
|
|
|
|
Type Tag `json:"type"`
|
|
|
|
Body interface{} `json:"body"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRequest(seq int, v Value) Request {
|
|
|
|
return Request{
|
|
|
|
Seq: seq,
|
|
|
|
Type: v.NetTag(),
|
|
|
|
Body: v,
|
|
|
|
}
|
|
|
|
}
|