Documentation ¶
Index ¶
- Constants
- Variables
- type ServerConf
- func (*ServerConf) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConf) GetDisableHttp2() bool
- func (x *ServerConf) GetIdleTimeoutMs() int32
- func (x *ServerConf) GetPatternDataHandler() []*ServerConf_PatternDataHandler
- func (x *ServerConf) GetPort() int32
- func (x *ServerConf) GetProtocol() ServerConf_ProtocolType
- func (x *ServerConf) GetReadTimeoutMs() int32
- func (x *ServerConf) GetTlsCertFile() string
- func (x *ServerConf) GetTlsKeyFile() string
- func (x *ServerConf) GetWriteTimeoutMs() int32
- func (*ServerConf) ProtoMessage()
- func (x *ServerConf) ProtoReflect() protoreflect.Message
- func (x *ServerConf) Reset()
- func (x *ServerConf) String() string
- type ServerConf_PatternDataHandler
- func (*ServerConf_PatternDataHandler) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConf_PatternDataHandler) GetPattern() string
- func (x *ServerConf_PatternDataHandler) GetResponseSize() int32
- func (*ServerConf_PatternDataHandler) ProtoMessage()
- func (x *ServerConf_PatternDataHandler) ProtoReflect() protoreflect.Message
- func (x *ServerConf_PatternDataHandler) Reset()
- func (x *ServerConf_PatternDataHandler) String() string
- type ServerConf_ProtocolType
- func (ServerConf_ProtocolType) Descriptor() protoreflect.EnumDescriptor
- func (x ServerConf_ProtocolType) Enum() *ServerConf_ProtocolType
- func (ServerConf_ProtocolType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServerConf_ProtocolType) Number() protoreflect.EnumNumber
- func (x ServerConf_ProtocolType) String() string
- func (ServerConf_ProtocolType) Type() protoreflect.EnumType
- func (x *ServerConf_ProtocolType) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
View Source
const ( Default_ServerConf_Port = int32(3141) Default_ServerConf_Protocol = ServerConf_HTTP Default_ServerConf_ReadTimeoutMs = int32(10000) Default_ServerConf_WriteTimeoutMs = int32(10000) Default_ServerConf_IdleTimeoutMs = int32(60000) )
Default values for ServerConf fields.
View Source
const (
Default_ServerConf_PatternDataHandler_Pattern = string("cloudprober")
)
Default values for ServerConf_PatternDataHandler fields.
Variables ¶
View Source
var ( ServerConf_ProtocolType_name = map[int32]string{ 0: "HTTP", 1: "HTTPS", } ServerConf_ProtocolType_value = map[string]int32{ "HTTP": 0, "HTTPS": 1, } )
Enum value maps for ServerConf_ProtocolType.
View Source
var File_github_com_google_cloudprober_servers_http_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ServerConf ¶
type ServerConf struct { Port *int32 `protobuf:"varint,1,opt,name=port,def=3141" json:"port,omitempty"` Protocol *ServerConf_ProtocolType `protobuf:"varint,6,opt,name=protocol,enum=cloudprober.servers.http.ServerConf_ProtocolType,def=0" json:"protocol,omitempty"` // Maximum duration for reading the entire request, including the body. ReadTimeoutMs *int32 `protobuf:"varint,2,opt,name=read_timeout_ms,json=readTimeoutMs,def=10000" json:"read_timeout_ms,omitempty"` // default: 10s // Maximum duration before timing out writes of the response. WriteTimeoutMs *int32 `protobuf:"varint,3,opt,name=write_timeout_ms,json=writeTimeoutMs,def=10000" json:"write_timeout_ms,omitempty"` // default: 10s // Maximum amount of time to wait for the next request when keep-alives are // enabled. IdleTimeoutMs *int32 `protobuf:"varint,4,opt,name=idle_timeout_ms,json=idleTimeoutMs,def=60000" json:"idle_timeout_ms,omitempty"` // default: 1m // Certificate file to use for HTTPS servers. TlsCertFile *string `protobuf:"bytes,7,opt,name=tls_cert_file,json=tlsCertFile" json:"tls_cert_file,omitempty"` // Private key file corresponding to the certificate above. TlsKeyFile *string `protobuf:"bytes,8,opt,name=tls_key_file,json=tlsKeyFile" json:"tls_key_file,omitempty"` // Disable HTTP/2 for HTTPS servers. DisableHttp2 *bool `protobuf:"varint,9,opt,name=disable_http2,json=disableHttp2" json:"disable_http2,omitempty"` // Pattern data handler returns pattern data at the url /data_<size_in_bytes>, // e.g. "/data_2048". PatternDataHandler []*ServerConf_PatternDataHandler `protobuf:"bytes,5,rep,name=pattern_data_handler,json=patternDataHandler" json:"pattern_data_handler,omitempty"` // contains filtered or unexported fields }
Next available tag = 10
func (*ServerConf) Descriptor
deprecated
func (*ServerConf) Descriptor() ([]byte, []int)
Deprecated: Use ServerConf.ProtoReflect.Descriptor instead.
func (*ServerConf) GetDisableHttp2 ¶ added in v0.10.2
func (x *ServerConf) GetDisableHttp2() bool
func (*ServerConf) GetIdleTimeoutMs ¶
func (x *ServerConf) GetIdleTimeoutMs() int32
func (*ServerConf) GetPatternDataHandler ¶
func (x *ServerConf) GetPatternDataHandler() []*ServerConf_PatternDataHandler
func (*ServerConf) GetPort ¶
func (x *ServerConf) GetPort() int32
func (*ServerConf) GetProtocol ¶ added in v0.10.2
func (x *ServerConf) GetProtocol() ServerConf_ProtocolType
func (*ServerConf) GetReadTimeoutMs ¶
func (x *ServerConf) GetReadTimeoutMs() int32
func (*ServerConf) GetTlsCertFile ¶ added in v0.10.2
func (x *ServerConf) GetTlsCertFile() string
func (*ServerConf) GetTlsKeyFile ¶ added in v0.10.2
func (x *ServerConf) GetTlsKeyFile() string
func (*ServerConf) GetWriteTimeoutMs ¶
func (x *ServerConf) GetWriteTimeoutMs() int32
func (*ServerConf) ProtoMessage ¶
func (*ServerConf) ProtoMessage()
func (*ServerConf) ProtoReflect ¶ added in v0.10.8
func (x *ServerConf) ProtoReflect() protoreflect.Message
func (*ServerConf) Reset ¶
func (x *ServerConf) Reset()
func (*ServerConf) String ¶
func (x *ServerConf) String() string
type ServerConf_PatternDataHandler ¶
type ServerConf_PatternDataHandler struct { // Response sizes to server, e.g. 1024. ResponseSize *int32 `protobuf:"varint,1,req,name=response_size,json=responseSize" json:"response_size,omitempty"` // Pattern is repeated to build the response, with "response_size mod // pattern_size" filled by '0' bytes. Pattern *string `protobuf:"bytes,2,opt,name=pattern,def=cloudprober" json:"pattern,omitempty"` // contains filtered or unexported fields }
func (*ServerConf_PatternDataHandler) Descriptor
deprecated
func (*ServerConf_PatternDataHandler) Descriptor() ([]byte, []int)
Deprecated: Use ServerConf_PatternDataHandler.ProtoReflect.Descriptor instead.
func (*ServerConf_PatternDataHandler) GetPattern ¶
func (x *ServerConf_PatternDataHandler) GetPattern() string
func (*ServerConf_PatternDataHandler) GetResponseSize ¶
func (x *ServerConf_PatternDataHandler) GetResponseSize() int32
func (*ServerConf_PatternDataHandler) ProtoMessage ¶
func (*ServerConf_PatternDataHandler) ProtoMessage()
func (*ServerConf_PatternDataHandler) ProtoReflect ¶ added in v0.10.8
func (x *ServerConf_PatternDataHandler) ProtoReflect() protoreflect.Message
func (*ServerConf_PatternDataHandler) Reset ¶
func (x *ServerConf_PatternDataHandler) Reset()
func (*ServerConf_PatternDataHandler) String ¶
func (x *ServerConf_PatternDataHandler) String() string
type ServerConf_ProtocolType ¶ added in v0.10.2
type ServerConf_ProtocolType int32
tls_cert_file and tls_key_file field should be set for HTTPS.
const ( ServerConf_HTTP ServerConf_ProtocolType = 0 ServerConf_HTTPS ServerConf_ProtocolType = 1 )
func (ServerConf_ProtocolType) Descriptor ¶ added in v0.10.8
func (ServerConf_ProtocolType) Descriptor() protoreflect.EnumDescriptor
func (ServerConf_ProtocolType) Enum ¶ added in v0.10.2
func (x ServerConf_ProtocolType) Enum() *ServerConf_ProtocolType
func (ServerConf_ProtocolType) EnumDescriptor
deprecated
added in
v0.10.2
func (ServerConf_ProtocolType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServerConf_ProtocolType.Descriptor instead.
func (ServerConf_ProtocolType) Number ¶ added in v0.10.8
func (x ServerConf_ProtocolType) Number() protoreflect.EnumNumber
func (ServerConf_ProtocolType) String ¶ added in v0.10.2
func (x ServerConf_ProtocolType) String() string
func (ServerConf_ProtocolType) Type ¶ added in v0.10.8
func (ServerConf_ProtocolType) Type() protoreflect.EnumType
func (*ServerConf_ProtocolType) UnmarshalJSON
deprecated
added in
v0.10.2
func (x *ServerConf_ProtocolType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.