urlfetch

package
v0.0.0-...-d88c8b5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

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

func (*URLFetchRequest) Descriptor

func (*URLFetchRequest) Descriptor() ([]byte, []int)

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

func (*URLFetchRequest) XXX_DiscardUnknown

func (m *URLFetchRequest) XXX_DiscardUnknown()

func (*URLFetchRequest) XXX_Marshal

func (m *URLFetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*URLFetchRequest) XXX_Merge

func (dst *URLFetchRequest) XXX_Merge(src proto.Message)

func (*URLFetchRequest) XXX_Size

func (m *URLFetchRequest) XXX_Size() int

func (*URLFetchRequest) XXX_Unmarshal

func (m *URLFetchRequest) XXX_Unmarshal(b []byte) error

type URLFetchRequest_Header

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

func (*URLFetchRequest_Header) Descriptor

func (*URLFetchRequest_Header) Descriptor() ([]byte, []int)

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

func (*URLFetchRequest_Header) XXX_DiscardUnknown

func (m *URLFetchRequest_Header) XXX_DiscardUnknown()

func (*URLFetchRequest_Header) XXX_Marshal

func (m *URLFetchRequest_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*URLFetchRequest_Header) XXX_Merge

func (dst *URLFetchRequest_Header) XXX_Merge(src proto.Message)

func (*URLFetchRequest_Header) XXX_Size

func (m *URLFetchRequest_Header) XXX_Size() int

func (*URLFetchRequest_Header) XXX_Unmarshal

func (m *URLFetchRequest_Header) XXX_Unmarshal(b []byte) error

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) EnumDescriptor

func (URLFetchRequest_RequestMethod) EnumDescriptor() ([]byte, []int)

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

func (*URLFetchResponse) Descriptor

func (*URLFetchResponse) Descriptor() ([]byte, []int)

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

func (*URLFetchResponse) XXX_DiscardUnknown

func (m *URLFetchResponse) XXX_DiscardUnknown()

func (*URLFetchResponse) XXX_Marshal

func (m *URLFetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*URLFetchResponse) XXX_Merge

func (dst *URLFetchResponse) XXX_Merge(src proto.Message)

func (*URLFetchResponse) XXX_Size

func (m *URLFetchResponse) XXX_Size() int

func (*URLFetchResponse) XXX_Unmarshal

func (m *URLFetchResponse) XXX_Unmarshal(b []byte) error

type URLFetchResponse_Header

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

func (*URLFetchResponse_Header) Descriptor

func (*URLFetchResponse_Header) Descriptor() ([]byte, []int)

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

func (*URLFetchResponse_Header) XXX_DiscardUnknown

func (m *URLFetchResponse_Header) XXX_DiscardUnknown()

func (*URLFetchResponse_Header) XXX_Marshal

func (m *URLFetchResponse_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*URLFetchResponse_Header) XXX_Merge

func (dst *URLFetchResponse_Header) XXX_Merge(src proto.Message)

func (*URLFetchResponse_Header) XXX_Size

func (m *URLFetchResponse_Header) XXX_Size() int

func (*URLFetchResponse_Header) XXX_Unmarshal

func (m *URLFetchResponse_Header) XXX_Unmarshal(b []byte) error

type URLFetchServiceError

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

func (*URLFetchServiceError) Descriptor

func (*URLFetchServiceError) Descriptor() ([]byte, []int)

func (*URLFetchServiceError) ProtoMessage

func (*URLFetchServiceError) ProtoMessage()

func (*URLFetchServiceError) Reset

func (m *URLFetchServiceError) Reset()

func (*URLFetchServiceError) String

func (m *URLFetchServiceError) String() string

func (*URLFetchServiceError) XXX_DiscardUnknown

func (m *URLFetchServiceError) XXX_DiscardUnknown()

func (*URLFetchServiceError) XXX_Marshal

func (m *URLFetchServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*URLFetchServiceError) XXX_Merge

func (dst *URLFetchServiceError) XXX_Merge(src proto.Message)

func (*URLFetchServiceError) XXX_Size

func (m *URLFetchServiceError) XXX_Size() int

func (*URLFetchServiceError) XXX_Unmarshal

func (m *URLFetchServiceError) XXX_Unmarshal(b []byte) error

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) EnumDescriptor

func (URLFetchServiceError_ErrorCode) EnumDescriptor() ([]byte, []int)

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