Documentation ¶
Index ¶
- func RegisterGetAreaHandler(s server.Server, hdlr GetAreaHandler, opts ...server.HandlerOption) error
- type AreaInfo
- func (*AreaInfo) Descriptor() ([]byte, []int)
- func (m *AreaInfo) GetAid() int32
- func (m *AreaInfo) GetAname() string
- func (*AreaInfo) ProtoMessage()
- func (m *AreaInfo) Reset()
- func (m *AreaInfo) String() string
- func (m *AreaInfo) XXX_DiscardUnknown()
- func (m *AreaInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AreaInfo) XXX_Merge(src proto.Message)
- func (m *AreaInfo) XXX_Size() int
- func (m *AreaInfo) XXX_Unmarshal(b []byte) error
- type GetAreaHandler
- type GetAreaService
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetData() []*AreaInfo
- func (m *Response) GetErrmsg() string
- func (m *Response) GetErrno() string
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGetAreaHandler ¶
func RegisterGetAreaHandler(s server.Server, hdlr GetAreaHandler, opts ...server.HandlerOption) error
Types ¶
type AreaInfo ¶
type AreaInfo struct { Aid int32 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"` Aname string `protobuf:"bytes,2,opt,name=aname,proto3" json:"aname,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AreaInfo) Descriptor ¶
func (*AreaInfo) ProtoMessage ¶
func (*AreaInfo) ProtoMessage()
func (*AreaInfo) XXX_DiscardUnknown ¶
func (m *AreaInfo) XXX_DiscardUnknown()
func (*AreaInfo) XXX_Marshal ¶
func (*AreaInfo) XXX_Unmarshal ¶
type GetAreaHandler ¶
type GetAreaService ¶
type GetAreaService interface {
MicroGetArea(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewGetAreaService ¶
func NewGetAreaService(name string, c client.Client) GetAreaService
type Request ¶
type Request struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Errno string `protobuf:"bytes,1,opt,name=errno,proto3" json:"errno,omitempty"` Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"` Data []*AreaInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.