Documentation
¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type Service
- type TopicListRequest
- func (*TopicListRequest) Descriptor() ([]byte, []int)
- func (m *TopicListRequest) GetPage() int32
- func (m *TopicListRequest) GetPageSize() int32
- func (m *TopicListRequest) GetSystem() string
- func (*TopicListRequest) ProtoMessage()
- func (m *TopicListRequest) Reset()
- func (m *TopicListRequest) String() string
- func (this *TopicListRequest) Validate() error
- func (m *TopicListRequest) XXX_DiscardUnknown()
- func (m *TopicListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TopicListRequest) XXX_Merge(src proto.Message)
- func (m *TopicListRequest) XXX_Size() int
- func (m *TopicListRequest) XXX_Unmarshal(b []byte) error
- type TopicListResponse
- func (*TopicListResponse) Descriptor() ([]byte, []int)
- func (m *TopicListResponse) GetList() []*notify.Topic
- func (m *TopicListResponse) GetPage() int32
- func (m *TopicListResponse) GetPageSize() int32
- func (m *TopicListResponse) GetTotal() int32
- func (*TopicListResponse) ProtoMessage()
- func (m *TopicListResponse) Reset()
- func (m *TopicListResponse) String() string
- func (this *TopicListResponse) Validate() error
- func (m *TopicListResponse) XXX_DiscardUnknown()
- func (m *TopicListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TopicListResponse) XXX_Merge(src proto.Message)
- func (m *TopicListResponse) XXX_Size() int
- func (m *TopicListResponse) XXX_Unmarshal(b []byte) error
- type TopicListResponseWrapper
- func (*TopicListResponseWrapper) Descriptor() ([]byte, []int)
- func (m *TopicListResponseWrapper) GetCode() int32
- func (m *TopicListResponseWrapper) GetCodeExplain() string
- func (m *TopicListResponseWrapper) GetData() *TopicListResponse
- func (m *TopicListResponseWrapper) GetError() string
- func (*TopicListResponseWrapper) ProtoMessage()
- func (m *TopicListResponseWrapper) Reset()
- func (m *TopicListResponseWrapper) String() string
- func (this *TopicListResponseWrapper) Validate() error
- func (m *TopicListResponseWrapper) XXX_DiscardUnknown()
- func (m *TopicListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TopicListResponseWrapper) XXX_Merge(src proto.Message)
- func (m *TopicListResponseWrapper) XXX_Size() int
- func (m *TopicListResponseWrapper) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s giraffe_micro.Server, srv Service)
Types ¶
type Client ¶
type Client interface {
TopicList(ctx context.Context, in *TopicListRequest) (*TopicListResponse, error)
}
Client is the client API for topic service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(c giraffe_micro.Client) Client
type Service ¶
type Service interface {
TopicList(context.Context, *TopicListRequest) (*TopicListResponse, error)
}
Service is the server API for topic service.
type TopicListRequest ¶
type TopicListRequest struct { // //页码 Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page" form:"page"` // //每页大小 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"` // //事件系统 System string `protobuf:"bytes,3,opt,name=system,proto3" json:"system" form:"system"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TopicList请求
func (*TopicListRequest) Descriptor ¶
func (*TopicListRequest) Descriptor() ([]byte, []int)
func (*TopicListRequest) GetPage ¶
func (m *TopicListRequest) GetPage() int32
func (*TopicListRequest) GetPageSize ¶
func (m *TopicListRequest) GetPageSize() int32
func (*TopicListRequest) GetSystem ¶
func (m *TopicListRequest) GetSystem() string
func (*TopicListRequest) ProtoMessage ¶
func (*TopicListRequest) ProtoMessage()
func (*TopicListRequest) Reset ¶
func (m *TopicListRequest) Reset()
func (*TopicListRequest) String ¶
func (m *TopicListRequest) String() string
func (*TopicListRequest) Validate ¶
func (this *TopicListRequest) Validate() error
func (*TopicListRequest) XXX_DiscardUnknown ¶
func (m *TopicListRequest) XXX_DiscardUnknown()
func (*TopicListRequest) XXX_Marshal ¶
func (m *TopicListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TopicListRequest) XXX_Merge ¶
func (m *TopicListRequest) XXX_Merge(src proto.Message)
func (*TopicListRequest) XXX_Size ¶
func (m *TopicListRequest) XXX_Size() int
func (*TopicListRequest) XXX_Unmarshal ¶
func (m *TopicListRequest) XXX_Unmarshal(b []byte) error
type TopicListResponse ¶
type TopicListResponse struct { // //页数 Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page" form:"page"` // //页大小 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"` // //总数 Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total" form:"total"` // //数据列表 List []*notify.Topic `protobuf:"bytes,4,rep,name=list,proto3" json:"list" form:"list"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TopicList返回
func (*TopicListResponse) Descriptor ¶
func (*TopicListResponse) Descriptor() ([]byte, []int)
func (*TopicListResponse) GetList ¶
func (m *TopicListResponse) GetList() []*notify.Topic
func (*TopicListResponse) GetPage ¶
func (m *TopicListResponse) GetPage() int32
func (*TopicListResponse) GetPageSize ¶
func (m *TopicListResponse) GetPageSize() int32
func (*TopicListResponse) GetTotal ¶
func (m *TopicListResponse) GetTotal() int32
func (*TopicListResponse) ProtoMessage ¶
func (*TopicListResponse) ProtoMessage()
func (*TopicListResponse) Reset ¶
func (m *TopicListResponse) Reset()
func (*TopicListResponse) String ¶
func (m *TopicListResponse) String() string
func (*TopicListResponse) Validate ¶
func (this *TopicListResponse) Validate() error
func (*TopicListResponse) XXX_DiscardUnknown ¶
func (m *TopicListResponse) XXX_DiscardUnknown()
func (*TopicListResponse) XXX_Marshal ¶
func (m *TopicListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TopicListResponse) XXX_Merge ¶
func (m *TopicListResponse) XXX_Merge(src proto.Message)
func (*TopicListResponse) XXX_Size ¶
func (m *TopicListResponse) XXX_Size() int
func (*TopicListResponse) XXX_Unmarshal ¶
func (m *TopicListResponse) XXX_Unmarshal(b []byte) error
type TopicListResponseWrapper ¶
type TopicListResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *TopicListResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TopicListApi返回
func (*TopicListResponseWrapper) Descriptor ¶
func (*TopicListResponseWrapper) Descriptor() ([]byte, []int)
func (*TopicListResponseWrapper) GetCode ¶
func (m *TopicListResponseWrapper) GetCode() int32
func (*TopicListResponseWrapper) GetCodeExplain ¶
func (m *TopicListResponseWrapper) GetCodeExplain() string
func (*TopicListResponseWrapper) GetData ¶
func (m *TopicListResponseWrapper) GetData() *TopicListResponse
func (*TopicListResponseWrapper) GetError ¶
func (m *TopicListResponseWrapper) GetError() string
func (*TopicListResponseWrapper) ProtoMessage ¶
func (*TopicListResponseWrapper) ProtoMessage()
func (*TopicListResponseWrapper) Reset ¶
func (m *TopicListResponseWrapper) Reset()
func (*TopicListResponseWrapper) String ¶
func (m *TopicListResponseWrapper) String() string
func (*TopicListResponseWrapper) Validate ¶
func (this *TopicListResponseWrapper) Validate() error
func (*TopicListResponseWrapper) XXX_DiscardUnknown ¶
func (m *TopicListResponseWrapper) XXX_DiscardUnknown()
func (*TopicListResponseWrapper) XXX_Marshal ¶
func (m *TopicListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TopicListResponseWrapper) XXX_Merge ¶
func (m *TopicListResponseWrapper) XXX_Merge(src proto.Message)
func (*TopicListResponseWrapper) XXX_Size ¶
func (m *TopicListResponseWrapper) XXX_Size() int
func (*TopicListResponseWrapper) XXX_Unmarshal ¶
func (m *TopicListResponseWrapper) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.