func (r PollServiceRequest) Type() RequestType {
	return Poll
}
Type implementation of Request for PollServiceRequest
package service
import "github.com/oasislabs/oasis-gateway/rpc"
type RequestType uint
const (
	Deploy       RequestType = 0
	Execute      RequestType = 1
	Poll         RequestType = 2
	GetCode      RequestType = 3
	GetExpiry    RequestType = 4
	GetPublicKey RequestType = 5
)
type Request interface {
	Type() RequestType
}
type AsyncResponse struct {
	ID uint64 `json:"id"`
}
type ExecuteServiceRequest struct {
	Data string `json:"data"`
	Address string `json:"address"`
}
func (r ExecuteServiceRequest) Type() RequestType {
	return Execute
}
type ExecuteServiceResponse AsyncResponse
type DeployServiceRequest struct {
	Data string `json:"data"`
}
func (r DeployServiceRequest) Type() RequestType {
	return Deploy
}
type DeployServiceResponse AsyncResponse
type GetCodeRequest struct {
	Address string `json:"address"`
}
func (r GetCodeRequest) Type() RequestType {
	return GetCode
}
type GetCodeResponse struct {
	Address string `json:"address"`
	Code string `json:"code"`
}
type GetExpiryRequest struct {
	Address string `json:"address"`
}
func (r GetExpiryRequest) Type() RequestType {
	return GetExpiry
}
type GetExpiryResponse struct {
	Address string `json:"address"`
	Expiry uint64 `json:"expiry"`
}
type GetPublicKeyRequest struct {
	Address string `json:"address"`
}
func (r GetPublicKeyRequest) Type() RequestType {
	return GetPublicKey
}
type GetPublicKeyResponse struct {
	Timestamp uint64 `json:"timestamp"`
	Address string `json:"address"`
	PublicKey string `json:"publicKey"`
	Signature string `json:"signature"`
}
type PollServiceRequest struct {
	Offset uint64 `json:"offset"`
	Count uint `json:"count"`
	DiscardPrevious bool `json:"discardPrevious"`
}