forked from google/cloudprober
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.pb.go
152 lines (130 loc) · 6.47 KB
/
config.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/servers/http/proto/config.proto
/*
Package proto is a generated protocol buffer package.
It is generated from these files:
github.com/google/cloudprober/servers/http/proto/config.proto
It has these top-level messages:
ServerConf
*/
package proto
import proto1 "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto1.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package
type ServerConf struct {
Port *int32 `protobuf:"varint,1,opt,name=port,def=3141" json:"port,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"`
// 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_unrecognized []byte `json:"-"`
}
func (m *ServerConf) Reset() { *m = ServerConf{} }
func (m *ServerConf) String() string { return proto1.CompactTextString(m) }
func (*ServerConf) ProtoMessage() {}
func (*ServerConf) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
const Default_ServerConf_Port int32 = 3141
const Default_ServerConf_ReadTimeoutMs int32 = 10000
const Default_ServerConf_WriteTimeoutMs int32 = 10000
const Default_ServerConf_IdleTimeoutMs int32 = 60000
func (m *ServerConf) GetPort() int32 {
if m != nil && m.Port != nil {
return *m.Port
}
return Default_ServerConf_Port
}
func (m *ServerConf) GetReadTimeoutMs() int32 {
if m != nil && m.ReadTimeoutMs != nil {
return *m.ReadTimeoutMs
}
return Default_ServerConf_ReadTimeoutMs
}
func (m *ServerConf) GetWriteTimeoutMs() int32 {
if m != nil && m.WriteTimeoutMs != nil {
return *m.WriteTimeoutMs
}
return Default_ServerConf_WriteTimeoutMs
}
func (m *ServerConf) GetIdleTimeoutMs() int32 {
if m != nil && m.IdleTimeoutMs != nil {
return *m.IdleTimeoutMs
}
return Default_ServerConf_IdleTimeoutMs
}
func (m *ServerConf) GetPatternDataHandler() []*ServerConf_PatternDataHandler {
if m != nil {
return m.PatternDataHandler
}
return nil
}
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_unrecognized []byte `json:"-"`
}
func (m *ServerConf_PatternDataHandler) Reset() { *m = ServerConf_PatternDataHandler{} }
func (m *ServerConf_PatternDataHandler) String() string { return proto1.CompactTextString(m) }
func (*ServerConf_PatternDataHandler) ProtoMessage() {}
func (*ServerConf_PatternDataHandler) Descriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 0}
}
const Default_ServerConf_PatternDataHandler_Pattern string = "cloudprober"
func (m *ServerConf_PatternDataHandler) GetResponseSize() int32 {
if m != nil && m.ResponseSize != nil {
return *m.ResponseSize
}
return 0
}
func (m *ServerConf_PatternDataHandler) GetPattern() string {
if m != nil && m.Pattern != nil {
return *m.Pattern
}
return Default_ServerConf_PatternDataHandler_Pattern
}
func init() {
proto1.RegisterType((*ServerConf)(nil), "cloudprober.servers.http.ServerConf")
proto1.RegisterType((*ServerConf_PatternDataHandler)(nil), "cloudprober.servers.http.ServerConf.PatternDataHandler")
}
func init() {
proto1.RegisterFile("github.com/google/cloudprober/servers/http/proto/config.proto", fileDescriptor0)
}
var fileDescriptor0 = []byte{
// 296 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xcf, 0x4b, 0x33, 0x31,
0x10, 0x86, 0xe9, 0x8f, 0xe5, 0xe3, 0x4b, 0xad, 0x95, 0xe0, 0x21, 0x78, 0x2a, 0x8a, 0xd0, 0x4b,
0x93, 0xad, 0x8a, 0x42, 0xc1, 0x93, 0x1e, 0xbc, 0x08, 0xb2, 0xf5, 0xbe, 0xa6, 0xdd, 0xe9, 0x36,
0xb0, 0xdd, 0x09, 0xc9, 0x54, 0xa1, 0x47, 0xff, 0x72, 0x69, 0xb6, 0x65, 0x57, 0x8a, 0xc7, 0xbc,
0xcf, 0x33, 0x2f, 0x99, 0x61, 0x8f, 0xb9, 0xa1, 0xd5, 0x66, 0x2e, 0x17, 0xb8, 0x56, 0x39, 0x62,
0x5e, 0x80, 0x5a, 0x14, 0xb8, 0xc9, 0xac, 0xc3, 0x39, 0x38, 0x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