proto

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HTTPRequest_Method_name = map[int32]string{
		0: "GET",
		1: "POST",
		2: "PUT",
		3: "DELETE",
		4: "HEAD",
		5: "OPTIONS",
		6: "PATCH",
	}
	HTTPRequest_Method_value = map[string]int32{
		"GET":     0,
		"POST":    1,
		"PUT":     2,
		"DELETE":  3,
		"HEAD":    4,
		"OPTIONS": 5,
		"PATCH":   6,
	}
)

Enum value maps for HTTPRequest_Method.

View Source
var File_github_com_cloudprober_cloudprober_internal_httpreq_proto_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HTTPRequest

type HTTPRequest struct {
	Url    string             `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Method HTTPRequest_Method `protobuf:"varint,2,opt,name=method,proto3,enum=cloudprober.utils.httpreq.HTTPRequest_Method" json:"method,omitempty"`
	// Data to be sent as request body. If there are multiple "data" fields, we combine
	// their values with a '&' in between. Note: 1) If data appears to be a valid json,
	// we automatically set the content-type header to "application/json", 2) If data
	// appears to be a query string we set content-type to
	// "application/x-www-form-urlencoded". Content type header can still be overridden
	// using the header field below.
	Data []string `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// HTTP request headers
	Header map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*HTTPRequest) Descriptor deprecated

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

Deprecated: Use HTTPRequest.ProtoReflect.Descriptor instead.

func (*HTTPRequest) GetData

func (x *HTTPRequest) GetData() []string

func (*HTTPRequest) GetHeader

func (x *HTTPRequest) GetHeader() map[string]string

func (*HTTPRequest) GetMethod

func (x *HTTPRequest) GetMethod() HTTPRequest_Method

func (*HTTPRequest) GetUrl

func (x *HTTPRequest) GetUrl() string

func (*HTTPRequest) ProtoMessage

func (*HTTPRequest) ProtoMessage()

func (*HTTPRequest) ProtoReflect

func (x *HTTPRequest) ProtoReflect() protoreflect.Message

func (*HTTPRequest) Reset

func (x *HTTPRequest) Reset()

func (*HTTPRequest) String

func (x *HTTPRequest) String() string

type HTTPRequest_Method

type HTTPRequest_Method int32

HTTP method

const (
	HTTPRequest_GET     HTTPRequest_Method = 0
	HTTPRequest_POST    HTTPRequest_Method = 1
	HTTPRequest_PUT     HTTPRequest_Method = 2
	HTTPRequest_DELETE  HTTPRequest_Method = 3
	HTTPRequest_HEAD    HTTPRequest_Method = 4
	HTTPRequest_OPTIONS HTTPRequest_Method = 5
	HTTPRequest_PATCH   HTTPRequest_Method = 6
)

func (HTTPRequest_Method) Descriptor

func (HTTPRequest_Method) Enum

func (HTTPRequest_Method) EnumDescriptor deprecated

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

Deprecated: Use HTTPRequest_Method.Descriptor instead.

func (HTTPRequest_Method) Number

func (HTTPRequest_Method) String

func (x HTTPRequest_Method) String() string

func (HTTPRequest_Method) Type

Jump to

Keyboard shortcuts

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