urlfetch

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2015 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package urlfetch is a generated protocol buffer package.

It is generated from these files:

google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto

It has these top-level messages:

URLFetchServiceError
URLFetchRequest
URLFetchResponse

Index

Constants

View Source
const Default_URLFetchRequest_FollowRedirects bool = true
View Source
const Default_URLFetchRequest_MustValidateServerCertificate bool = true
View Source
const Default_URLFetchResponse_ApiBytesReceived int64 = 0
View Source
const Default_URLFetchResponse_ApiBytesSent int64 = 0
View Source
const Default_URLFetchResponse_ApiCpuMilliseconds int64 = 0
View Source
const Default_URLFetchResponse_ContentWasTruncated bool = false

Variables

View Source
var URLFetchRequest_RequestMethod_name = map[int32]string{
	1: "GET",
	2: "POST",
	3: "HEAD",
	4: "PUT",
	5: "DELETE",
	6: "PATCH",
}
View Source
var URLFetchRequest_RequestMethod_value = map[string]int32{
	"GET":    1,
	"POST":   2,
	"HEAD":   3,
	"PUT":    4,
	"DELETE": 5,
	"PATCH":  6,
}
View Source
var URLFetchServiceError_ErrorCode_name = map[int32]string{
	0:  "OK",
	1:  "INVALID_URL",
	2:  "FETCH_ERROR",
	3:  "UNSPECIFIED_ERROR",
	4:  "RESPONSE_TOO_LARGE",
	5:  "DEADLINE_EXCEEDED",
	6:  "SSL_CERTIFICATE_ERROR",
	7:  "DNS_ERROR",
	8:  "CLOSED",
	9:  "INTERNAL_TRANSIENT_ERROR",
	10: "TOO_MANY_REDIRECTS",
	11: "MALFORMED_REPLY",
	12: "CONNECTION_ERROR",
}
View Source
var URLFetchServiceError_ErrorCode_value = map[string]int32{
	"OK":                       0,
	"INVALID_URL":              1,
	"FETCH_ERROR":              2,
	"UNSPECIFIED_ERROR":        3,
	"RESPONSE_TOO_LARGE":       4,
	"DEADLINE_EXCEEDED":        5,
	"SSL_CERTIFICATE_ERROR":    6,
	"DNS_ERROR":                7,
	"CLOSED":                   8,
	"INTERNAL_TRANSIENT_ERROR": 9,
	"TOO_MANY_REDIRECTS":       10,
	"MALFORMED_REPLY":          11,
	"CONNECTION_ERROR":         12,
}

Functions

This section is empty.

Types

type URLFetchRequest

type URLFetchRequest struct {
	Method                        *URLFetchRequest_RequestMethod `protobuf:"varint,1,req,enum=appengine.URLFetchRequest_RequestMethod" json:"Method,omitempty"`
	Url                           *string                        `protobuf:"bytes,2,req" json:"Url,omitempty"`
	Header                        []*URLFetchRequest_Header      `protobuf:"group,3,rep" json:"header,omitempty"`
	Payload                       []byte                         `protobuf:"bytes,6,opt" json:"Payload,omitempty"`
	FollowRedirects               *bool                          `protobuf:"varint,7,opt,def=1" json:"FollowRedirects,omitempty"`
	Deadline                      *float64                       `protobuf:"fixed64,8,opt" json:"Deadline,omitempty"`
	MustValidateServerCertificate *bool                          `protobuf:"varint,9,opt,def=1" json:"MustValidateServerCertificate,omitempty"`
	XXX_unrecognized              []byte                         `json:"-"`
}

func (*URLFetchRequest) GetDeadline

func (m *URLFetchRequest) GetDeadline() float64

func (*URLFetchRequest) GetFollowRedirects

func (m *URLFetchRequest) GetFollowRedirects() bool

func (*URLFetchRequest) GetHeader

func (m *URLFetchRequest) GetHeader() []*URLFetchRequest_Header

func (*URLFetchRequest) GetMethod

func (*URLFetchRequest) GetMustValidateServerCertificate

func (m *URLFetchRequest) GetMustValidateServerCertificate() bool

func (*URLFetchRequest) GetPayload

func (m *URLFetchRequest) GetPayload() []byte

func (*URLFetchRequest) GetUrl

func (m *URLFetchRequest) GetUrl() string

func (*URLFetchRequest) ProtoMessage

func (*URLFetchRequest) ProtoMessage()

func (*URLFetchRequest) Reset

func (m *URLFetchRequest) Reset()

func (*URLFetchRequest) String

func (m *URLFetchRequest) String() string

type URLFetchRequest_Header

type URLFetchRequest_Header struct {
	Key              *string `protobuf:"bytes,4,req" json:"Key,omitempty"`
	Value            *string `protobuf:"bytes,5,req" json:"Value,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*URLFetchRequest_Header) GetKey

func (m *URLFetchRequest_Header) GetKey() string

func (*URLFetchRequest_Header) GetValue

func (m *URLFetchRequest_Header) GetValue() string

func (*URLFetchRequest_Header) ProtoMessage

func (*URLFetchRequest_Header) ProtoMessage()

func (*URLFetchRequest_Header) Reset

func (m *URLFetchRequest_Header) Reset()

func (*URLFetchRequest_Header) String

func (m *URLFetchRequest_Header) String() string

type URLFetchRequest_RequestMethod

type URLFetchRequest_RequestMethod int32
const (
	URLFetchRequest_GET    URLFetchRequest_RequestMethod = 1
	URLFetchRequest_POST   URLFetchRequest_RequestMethod = 2
	URLFetchRequest_HEAD   URLFetchRequest_RequestMethod = 3
	URLFetchRequest_PUT    URLFetchRequest_RequestMethod = 4
	URLFetchRequest_DELETE URLFetchRequest_RequestMethod = 5
	URLFetchRequest_PATCH  URLFetchRequest_RequestMethod = 6
)

func (URLFetchRequest_RequestMethod) Enum

func (URLFetchRequest_RequestMethod) String

func (*URLFetchRequest_RequestMethod) UnmarshalJSON

func (x *URLFetchRequest_RequestMethod) UnmarshalJSON(data []byte) error

type URLFetchResponse

type URLFetchResponse struct {
	Content               []byte                     `protobuf:"bytes,1,opt" json:"Content,omitempty"`
	StatusCode            *int32                     `protobuf:"varint,2,req" json:"StatusCode,omitempty"`
	Header                []*URLFetchResponse_Header `protobuf:"group,3,rep" json:"header,omitempty"`
	ContentWasTruncated   *bool                      `protobuf:"varint,6,opt,def=0" json:"ContentWasTruncated,omitempty"`
	ExternalBytesSent     *int64                     `protobuf:"varint,7,opt" json:"ExternalBytesSent,omitempty"`
	ExternalBytesReceived *int64                     `protobuf:"varint,8,opt" json:"ExternalBytesReceived,omitempty"`
	FinalUrl              *string                    `protobuf:"bytes,9,opt" json:"FinalUrl,omitempty"`
	ApiCpuMilliseconds    *int64                     `protobuf:"varint,10,opt,def=0" json:"ApiCpuMilliseconds,omitempty"`
	ApiBytesSent          *int64                     `protobuf:"varint,11,opt,def=0" json:"ApiBytesSent,omitempty"`
	ApiBytesReceived      *int64                     `protobuf:"varint,12,opt,def=0" json:"ApiBytesReceived,omitempty"`
	XXX_unrecognized      []byte                     `json:"-"`
}

func (*URLFetchResponse) GetApiBytesReceived

func (m *URLFetchResponse) GetApiBytesReceived() int64

func (*URLFetchResponse) GetApiBytesSent

func (m *URLFetchResponse) GetApiBytesSent() int64

func (*URLFetchResponse) GetApiCpuMilliseconds

func (m *URLFetchResponse) GetApiCpuMilliseconds() int64

func (*URLFetchResponse) GetContent

func (m *URLFetchResponse) GetContent() []byte

func (*URLFetchResponse) GetContentWasTruncated

func (m *URLFetchResponse) GetContentWasTruncated() bool

func (*URLFetchResponse) GetExternalBytesReceived

func (m *URLFetchResponse) GetExternalBytesReceived() int64

func (*URLFetchResponse) GetExternalBytesSent

func (m *URLFetchResponse) GetExternalBytesSent() int64

func (*URLFetchResponse) GetFinalUrl

func (m *URLFetchResponse) GetFinalUrl() string

func (*URLFetchResponse) GetHeader

func (m *URLFetchResponse) GetHeader() []*URLFetchResponse_Header

func (*URLFetchResponse) GetStatusCode

func (m *URLFetchResponse) GetStatusCode() int32

func (*URLFetchResponse) ProtoMessage

func (*URLFetchResponse) ProtoMessage()

func (*URLFetchResponse) Reset

func (m *URLFetchResponse) Reset()

func (*URLFetchResponse) String

func (m *URLFetchResponse) String() string

type URLFetchResponse_Header

type URLFetchResponse_Header struct {
	Key              *string `protobuf:"bytes,4,req" json:"Key,omitempty"`
	Value            *string `protobuf:"bytes,5,req" json:"Value,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*URLFetchResponse_Header) GetKey

func (m *URLFetchResponse_Header) GetKey() string

func (*URLFetchResponse_Header) GetValue

func (m *URLFetchResponse_Header) GetValue() string

func (*URLFetchResponse_Header) ProtoMessage

func (*URLFetchResponse_Header) ProtoMessage()

func (*URLFetchResponse_Header) Reset

func (m *URLFetchResponse_Header) Reset()

func (*URLFetchResponse_Header) String

func (m *URLFetchResponse_Header) String() string

type URLFetchServiceError

type URLFetchServiceError struct {
	XXX_unrecognized []byte `json:"-"`
}

func (*URLFetchServiceError) ProtoMessage

func (*URLFetchServiceError) ProtoMessage()

func (*URLFetchServiceError) Reset

func (m *URLFetchServiceError) Reset()

func (*URLFetchServiceError) String

func (m *URLFetchServiceError) String() string

type URLFetchServiceError_ErrorCode

type URLFetchServiceError_ErrorCode int32
const (
	URLFetchServiceError_OK                       URLFetchServiceError_ErrorCode = 0
	URLFetchServiceError_INVALID_URL              URLFetchServiceError_ErrorCode = 1
	URLFetchServiceError_FETCH_ERROR              URLFetchServiceError_ErrorCode = 2
	URLFetchServiceError_UNSPECIFIED_ERROR        URLFetchServiceError_ErrorCode = 3
	URLFetchServiceError_RESPONSE_TOO_LARGE       URLFetchServiceError_ErrorCode = 4
	URLFetchServiceError_DEADLINE_EXCEEDED        URLFetchServiceError_ErrorCode = 5
	URLFetchServiceError_SSL_CERTIFICATE_ERROR    URLFetchServiceError_ErrorCode = 6
	URLFetchServiceError_DNS_ERROR                URLFetchServiceError_ErrorCode = 7
	URLFetchServiceError_CLOSED                   URLFetchServiceError_ErrorCode = 8
	URLFetchServiceError_INTERNAL_TRANSIENT_ERROR URLFetchServiceError_ErrorCode = 9
	URLFetchServiceError_TOO_MANY_REDIRECTS       URLFetchServiceError_ErrorCode = 10
	URLFetchServiceError_MALFORMED_REPLY          URLFetchServiceError_ErrorCode = 11
	URLFetchServiceError_CONNECTION_ERROR         URLFetchServiceError_ErrorCode = 12
)

func (URLFetchServiceError_ErrorCode) Enum

func (URLFetchServiceError_ErrorCode) String

func (*URLFetchServiceError_ErrorCode) UnmarshalJSON

func (x *URLFetchServiceError_ErrorCode) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL