proto

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

View Source
const Default_ServerConf_IdleTimeoutMs int32 = 60000
View Source
const Default_ServerConf_PatternDataHandler_Pattern string = "cloudprober"
View Source
const Default_ServerConf_Port int32 = 3141
View Source
const Default_ServerConf_ReadTimeoutMs int32 = 10000
View Source
const Default_ServerConf_WriteTimeoutMs int32 = 10000

Variables

View Source
var ServerConf_ProtocolType_name = map[int32]string{
	0: "HTTP",
	1: "HTTPS",
}
View Source
var ServerConf_ProtocolType_value = map[string]int32{
	"HTTP":  0,
	"HTTPS": 1,
}

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"`
	// 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"`
	// 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"`
	// 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"`
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

Next available tag = 10

func (*ServerConf) Descriptor

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

func (*ServerConf) GetDisableHttp2 added in v0.10.2

func (m *ServerConf) GetDisableHttp2() bool

func (*ServerConf) GetIdleTimeoutMs

func (m *ServerConf) GetIdleTimeoutMs() int32

func (*ServerConf) GetPatternDataHandler

func (m *ServerConf) GetPatternDataHandler() []*ServerConf_PatternDataHandler

func (*ServerConf) GetPort

func (m *ServerConf) GetPort() int32

func (*ServerConf) GetProtocol added in v0.10.2

func (m *ServerConf) GetProtocol() ServerConf_ProtocolType

func (*ServerConf) GetReadTimeoutMs

func (m *ServerConf) GetReadTimeoutMs() int32

func (*ServerConf) GetTlsCertFile added in v0.10.2

func (m *ServerConf) GetTlsCertFile() string

func (*ServerConf) GetTlsKeyFile added in v0.10.2

func (m *ServerConf) GetTlsKeyFile() string

func (*ServerConf) GetWriteTimeoutMs

func (m *ServerConf) GetWriteTimeoutMs() int32

func (*ServerConf) ProtoMessage

func (*ServerConf) ProtoMessage()

func (*ServerConf) Reset

func (m *ServerConf) Reset()

func (*ServerConf) String

func (m *ServerConf) String() string

func (*ServerConf) XXX_DiscardUnknown

func (m *ServerConf) XXX_DiscardUnknown()

func (*ServerConf) XXX_Marshal

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

func (*ServerConf) XXX_Merge

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

func (*ServerConf) XXX_Size

func (m *ServerConf) XXX_Size() int

func (*ServerConf) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerConf_PatternDataHandler) Descriptor

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

func (*ServerConf_PatternDataHandler) GetPattern

func (m *ServerConf_PatternDataHandler) GetPattern() string

func (*ServerConf_PatternDataHandler) GetResponseSize

func (m *ServerConf_PatternDataHandler) GetResponseSize() int32

func (*ServerConf_PatternDataHandler) ProtoMessage

func (*ServerConf_PatternDataHandler) ProtoMessage()

func (*ServerConf_PatternDataHandler) Reset

func (m *ServerConf_PatternDataHandler) Reset()

func (*ServerConf_PatternDataHandler) String

func (*ServerConf_PatternDataHandler) XXX_DiscardUnknown

func (m *ServerConf_PatternDataHandler) XXX_DiscardUnknown()

func (*ServerConf_PatternDataHandler) XXX_Marshal

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

func (*ServerConf_PatternDataHandler) XXX_Merge

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

func (*ServerConf_PatternDataHandler) XXX_Size

func (m *ServerConf_PatternDataHandler) XXX_Size() int

func (*ServerConf_PatternDataHandler) XXX_Unmarshal

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

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
)
const Default_ServerConf_Protocol ServerConf_ProtocolType = ServerConf_HTTP

func (ServerConf_ProtocolType) Enum added in v0.10.2

func (ServerConf_ProtocolType) EnumDescriptor added in v0.10.2

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

func (ServerConf_ProtocolType) String added in v0.10.2

func (x ServerConf_ProtocolType) String() string

func (*ServerConf_ProtocolType) UnmarshalJSON added in v0.10.2

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

Jump to

Keyboard shortcuts

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