|
|
@ -3,16 +3,16 @@ |
|
|
|
// DO NOT EDIT!
|
|
|
|
|
|
|
|
/* |
|
|
|
Package site is a generated protocol buffer package. |
|
|
|
Package siterpc is a generated protocol buffer package. |
|
|
|
|
|
|
|
It is generated from these files: |
|
|
|
site.proto |
|
|
|
|
|
|
|
It has these top-level messages: |
|
|
|
ConfigRequest |
|
|
|
ConfigResponse |
|
|
|
Request |
|
|
|
Response |
|
|
|
*/ |
|
|
|
package site |
|
|
|
package siterpc |
|
|
|
|
|
|
|
import proto "github.com/chai2010/protorpc/proto" |
|
|
|
import math "math" |
|
|
@ -29,32 +29,32 @@ var _ = proto.Marshal |
|
|
|
var _ = math.Inf |
|
|
|
|
|
|
|
// 配置信息请求结构
|
|
|
|
type ConfigRequest struct { |
|
|
|
type Request struct { |
|
|
|
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` |
|
|
|
Time *string `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"` |
|
|
|
Sign *string `protobuf:"bytes,3,opt,name=sign" json:"sign,omitempty"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ConfigRequest) Reset() { *m = ConfigRequest{} } |
|
|
|
func (m *ConfigRequest) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*ConfigRequest) ProtoMessage() {} |
|
|
|
func (m *Request) Reset() { *m = Request{} } |
|
|
|
func (m *Request) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*Request) ProtoMessage() {} |
|
|
|
|
|
|
|
func (m *ConfigRequest) GetData() string { |
|
|
|
func (m *Request) GetData() string { |
|
|
|
if m != nil && m.Data != nil { |
|
|
|
return *m.Data |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ConfigRequest) GetTime() string { |
|
|
|
func (m *Request) GetTime() string { |
|
|
|
if m != nil && m.Time != nil { |
|
|
|
return *m.Time |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ConfigRequest) GetSign() string { |
|
|
|
func (m *Request) GetSign() string { |
|
|
|
if m != nil && m.Sign != nil { |
|
|
|
return *m.Sign |
|
|
|
} |
|
|
@ -62,32 +62,32 @@ func (m *ConfigRequest) GetSign() string { |
|
|
|
} |
|
|
|
|
|
|
|
// 配置信息响应结构
|
|
|
|
type ConfigResponse struct { |
|
|
|
type Response struct { |
|
|
|
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` |
|
|
|
Time *string `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"` |
|
|
|
Sign *string `protobuf:"bytes,3,opt,name=sign" json:"sign,omitempty"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ConfigResponse) Reset() { *m = ConfigResponse{} } |
|
|
|
func (m *ConfigResponse) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*ConfigResponse) ProtoMessage() {} |
|
|
|
func (m *Response) Reset() { *m = Response{} } |
|
|
|
func (m *Response) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*Response) ProtoMessage() {} |
|
|
|
|
|
|
|
func (m *ConfigResponse) GetData() string { |
|
|
|
func (m *Response) GetData() string { |
|
|
|
if m != nil && m.Data != nil { |
|
|
|
return *m.Data |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ConfigResponse) GetTime() string { |
|
|
|
func (m *Response) GetTime() string { |
|
|
|
if m != nil && m.Time != nil { |
|
|
|
return *m.Time |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ConfigResponse) GetSign() string { |
|
|
|
func (m *Response) GetSign() string { |
|
|
|
if m != nil && m.Sign != nil { |
|
|
|
return *m.Sign |
|
|
|
} |
|
|
@ -98,9 +98,9 @@ func init() { |
|
|
|
} |
|
|
|
|
|
|
|
type SiteService interface { |
|
|
|
GetConfig(in *ConfigRequest, out *ConfigResponse) error |
|
|
|
GetBalanceType(in *ConfigRequest, out *ConfigResponse) error |
|
|
|
GetAllSite(in *ConfigRequest, out *ConfigResponse) error |
|
|
|
GetConfig(in *Request, out *Response) error |
|
|
|
GetBalanceType(in *Request, out *Response) error |
|
|
|
GetAllSite(in *Request, out *Response) error |
|
|
|
} |
|
|
|
|
|
|
|
// AcceptSiteServiceClient accepts connections on the listener and serves requests
|
|
|
@ -172,13 +172,13 @@ func NewSiteServiceClient(conn io.ReadWriteCloser) (*SiteServiceClient, *rpc.Cli |
|
|
|
return &SiteServiceClient{c}, c |
|
|
|
} |
|
|
|
|
|
|
|
func (c *SiteServiceClient) GetConfig(in *ConfigRequest, out *ConfigResponse) error { |
|
|
|
func (c *SiteServiceClient) GetConfig(in *Request, out *Response) error { |
|
|
|
return c.Call("SiteService.GetConfig", in, out) |
|
|
|
} |
|
|
|
func (c *SiteServiceClient) GetBalanceType(in *ConfigRequest, out *ConfigResponse) error { |
|
|
|
func (c *SiteServiceClient) GetBalanceType(in *Request, out *Response) error { |
|
|
|
return c.Call("SiteService.GetBalanceType", in, out) |
|
|
|
} |
|
|
|
func (c *SiteServiceClient) GetAllSite(in *ConfigRequest, out *ConfigResponse) error { |
|
|
|
func (c *SiteServiceClient) GetAllSite(in *Request, out *Response) error { |
|
|
|
return c.Call("SiteService.GetAllSite", in, out) |
|
|
|
} |
|
|
|
|
|
|
|