add http headers
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
82aa55c0ca
commit
77ccaa57e7
110
account.pb.go
110
account.pb.go
|
@ -28,6 +28,10 @@ type Account struct {
|
||||||
Hostname string `protobuf:"bytes,5,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
Hostname string `protobuf:"bytes,5,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
||||||
Domainname string `protobuf:"bytes,6,opt,name=domainname,proto3" json:"domainname,omitempty"`
|
Domainname string `protobuf:"bytes,6,opt,name=domainname,proto3" json:"domainname,omitempty"`
|
||||||
Port int32 `protobuf:"varint,7,opt,name=port,proto3" json:"port,omitempty"`
|
Port int32 `protobuf:"varint,7,opt,name=port,proto3" json:"port,omitempty"`
|
||||||
|
Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
SignupTime string `protobuf:"bytes,9,opt,name=signupTime,proto3" json:"signupTime,omitempty"`
|
||||||
|
SignupBrowser string `protobuf:"bytes,10,opt,name=signupBrowser,proto3" json:"signupBrowser,omitempty"`
|
||||||
|
HttpHeaders []*Account_HttpHeader `protobuf:"bytes,11,rep,name=httpHeaders,proto3" json:"httpHeaders,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
@ -107,23 +111,105 @@ func (m *Account) GetPort() int32 {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *Account) GetEmail() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Account) GetSignupTime() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.SignupTime
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Account) GetSignupBrowser() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.SignupBrowser
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Account) GetHttpHeaders() []*Account_HttpHeader {
|
||||||
|
if m != nil {
|
||||||
|
return m.HttpHeaders
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type Account_HttpHeader struct {
|
||||||
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Account_HttpHeader) Reset() { *m = Account_HttpHeader{} }
|
||||||
|
func (m *Account_HttpHeader) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*Account_HttpHeader) ProtoMessage() {}
|
||||||
|
func (*Account_HttpHeader) Descriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_8e28828dcb8d24f0, []int{0, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Account_HttpHeader) XXX_Unmarshal(b []byte) error {
|
||||||
|
return xxx_messageInfo_Account_HttpHeader.Unmarshal(m, b)
|
||||||
|
}
|
||||||
|
func (m *Account_HttpHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_Account_HttpHeader.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *Account_HttpHeader) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_Account_HttpHeader.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *Account_HttpHeader) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_Account_HttpHeader.Size(m)
|
||||||
|
}
|
||||||
|
func (m *Account_HttpHeader) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_Account_HttpHeader.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_Account_HttpHeader proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *Account_HttpHeader) GetName() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Name
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Account_HttpHeader) GetValue() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Value
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*Account)(nil), "witProtobuf.Account")
|
proto.RegisterType((*Account)(nil), "witProtobuf.Account")
|
||||||
|
proto.RegisterType((*Account_HttpHeader)(nil), "witProtobuf.Account.HttpHeader")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("account.proto", fileDescriptor_8e28828dcb8d24f0) }
|
func init() { proto.RegisterFile("account.proto", fileDescriptor_8e28828dcb8d24f0) }
|
||||||
|
|
||||||
var fileDescriptor_8e28828dcb8d24f0 = []byte{
|
var fileDescriptor_8e28828dcb8d24f0 = []byte{
|
||||||
// 172 bytes of a gzipped FileDescriptorProto
|
// 267 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0x4c, 0x4e, 0xce,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xbf, 0x4e, 0xc3, 0x30,
|
||||||
0x2f, 0xcd, 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2e, 0xcf, 0x2c, 0x09, 0x00,
|
0x10, 0xc6, 0x55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, 0x34, 0x56, 0x88, 0x1c, 0x8c, 0x2f, 0x24, 0xc7, 0xc5, 0x95, 0x92, 0x9f,
|
0xcd, 0xee, 0x21, 0xf7, 0x78, 0x92, 0x9a, 0x67, 0x04, 0x92, 0x88, 0x13, 0x46, 0x38, 0x37, 0xa0,
|
||||||
0x9b, 0x98, 0x99, 0x07, 0x96, 0x65, 0x03, 0xcb, 0x22, 0x89, 0x80, 0x5c, 0x57, 0x90, 0x5f, 0x54,
|
0xed, 0xf8, 0x3c, 0x4d, 0x8c, 0x3a, 0xb2, 0x23, 0x3a, 0x4f, 0xdb, 0xf2, 0xc4, 0x46, 0xcd, 0x1e,
|
||||||
0x22, 0xc1, 0xae, 0xc0, 0xa8, 0xc1, 0x1a, 0x04, 0x66, 0x27, 0xb1, 0x81, 0x7d, 0x64, 0x0c, 0x08,
|
0x00, 0x3a, 0xec, 0x85, 0xd2, 0x44, 0x17, 0x44, 0x27, 0x4e, 0xbc, 0xce, 0xa0, 0xf5, 0x7c, 0x59,
|
||||||
0x00, 0x00, 0xff, 0xff, 0x9b, 0x98, 0x99, 0x5e, 0xe2, 0x00, 0x00, 0x00,
|
0xce, 0xaa, 0xbc, 0xa1, 0x3a, 0x5e, 0x20, 0x7b, 0xa1, 0xce, 0x7c, 0x95, 0x2e, 0x20, 0x11, 0x37,
|
||||||
|
0x39, 0xf5, 0xad, 0x83, 0xf9, 0x54, 0xbd, 0xe4, 0xeb, 0xb4, 0xe9, 0xe6, 0xb0, 0x67, 0xd8, 0x24,
|
||||||
|
0xf5, 0x6e, 0x71, 0x70, 0xd2, 0x72, 0xa0, 0x96, 0xff, 0x26, 0xdb, 0x41, 0x71, 0xf4, 0xde, 0xec,
|
||||||
|
0xa5, 0xe8, 0xa4, 0x75, 0xbc, 0x28, 0xb3, 0xaa, 0x78, 0x79, 0xac, 0x27, 0xe1, 0xd5, 0x97, 0xe0,
|
||||||
|
0xea, 0xfd, 0xb5, 0xaf, 0x99, 0xce, 0x6c, 0xdf, 0x00, 0x6e, 0x88, 0xe2, 0x8d, 0x4f, 0x1b, 0xe3,
|
||||||
|
0xbd, 0x44, 0xf8, 0x23, 0xce, 0x61, 0xcc, 0x36, 0x89, 0xc3, 0x82, 0x3e, 0xea, 0xf5, 0x2f, 0x00,
|
||||||
|
0x00, 0xff, 0xff, 0x28, 0xce, 0xc8, 0x81, 0xb9, 0x01, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,4 +9,13 @@ message Account {
|
||||||
string hostname = 5;
|
string hostname = 5;
|
||||||
string domainname = 6;
|
string domainname = 6;
|
||||||
int32 port = 7;
|
int32 port = 7;
|
||||||
|
string email = 8;
|
||||||
|
string signupTime = 9;
|
||||||
|
string signupBrowser = 10;
|
||||||
|
repeated HttpHeader httpHeaders = 11;
|
||||||
|
|
||||||
|
message HttpHeader {
|
||||||
|
string name = 1;
|
||||||
|
string value = 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue