Documentation ¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (m *ListRequest) GetFieldSelector() string
- func (m *ListRequest) GetLabelSelector() string
- func (m *ListRequest) GetNamespaceId() string
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) String() string
- func (this *ListRequest) Validate() error
- func (m *ListRequest) XXX_DiscardUnknown()
- func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRequest) XXX_Merge(src proto.Message)
- func (m *ListRequest) XXX_Size() int
- func (m *ListRequest) XXX_Unmarshal(b []byte) error
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)
- func (m *ListResponse) GetList() []*container.Event
- func (m *ListResponse) GetPage() int32
- func (m *ListResponse) GetPageSize() int32
- func (m *ListResponse) GetTotal() int32
- func (*ListResponse) ProtoMessage()
- func (m *ListResponse) Reset()
- func (m *ListResponse) String() string
- func (this *ListResponse) Validate() error
- func (m *ListResponse) XXX_DiscardUnknown()
- func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponse) XXX_Merge(src proto.Message)
- func (m *ListResponse) XXX_Size() int
- func (m *ListResponse) XXX_Unmarshal(b []byte) error
- type ListResponseWrapper
- func (*ListResponseWrapper) Descriptor() ([]byte, []int)
- func (m *ListResponseWrapper) GetCode() int32
- func (m *ListResponseWrapper) GetCodeExplain() string
- func (m *ListResponseWrapper) GetData() *ListResponse
- func (m *ListResponseWrapper) GetError() string
- func (*ListResponseWrapper) ProtoMessage()
- func (m *ListResponseWrapper) Reset()
- func (m *ListResponseWrapper) String() string
- func (this *ListResponseWrapper) Validate() error
- func (m *ListResponseWrapper) XXX_DiscardUnknown()
- func (m *ListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponseWrapper) XXX_Merge(src proto.Message)
- func (m *ListResponseWrapper) XXX_Size() int
- func (m *ListResponseWrapper) XXX_Unmarshal(b []byte) error
- type Service
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 {
List(ctx context.Context, in *ListRequest) (*ListResponse, error)
}
Client is the client API for event 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 ListRequest ¶
type ListRequest struct { // //命名空间 id NamespaceId string `protobuf:"bytes,1,opt,name=namespaceId,proto3" json:"namespaceId" form:"namespaceId"` // //按字段筛选,如:involvedObject.name=name1,involvedObject.kind=Pod FieldSelector string `protobuf:"bytes,2,opt,name=fieldSelector,proto3" json:"fieldSelector" form:"fieldSelector"` // //按标签筛选,如:label1=123,label2=234 LabelSelector string `protobuf:"bytes,3,opt,name=labelSelector,proto3" json:"labelSelector" form:"labelSelector"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List请求
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) GetFieldSelector ¶
func (m *ListRequest) GetFieldSelector() string
func (*ListRequest) GetLabelSelector ¶
func (m *ListRequest) GetLabelSelector() string
func (*ListRequest) GetNamespaceId ¶
func (m *ListRequest) GetNamespaceId() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) String ¶
func (m *ListRequest) String() string
func (*ListRequest) Validate ¶
func (this *ListRequest) Validate() error
func (*ListRequest) XXX_DiscardUnknown ¶
func (m *ListRequest) XXX_DiscardUnknown()
func (*ListRequest) XXX_Marshal ¶
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRequest) XXX_Merge ¶
func (m *ListRequest) XXX_Merge(src proto.Message)
func (*ListRequest) XXX_Size ¶
func (m *ListRequest) XXX_Size() int
func (*ListRequest) XXX_Unmarshal ¶
func (m *ListRequest) XXX_Unmarshal(b []byte) error
type ListResponse ¶
type ListResponse 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 []*container.Event `protobuf:"bytes,4,rep,name=list,proto3" json:"list" form:"list"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List返回
func (*ListResponse) Descriptor ¶
func (*ListResponse) Descriptor() ([]byte, []int)
func (*ListResponse) GetList ¶
func (m *ListResponse) GetList() []*container.Event
func (*ListResponse) GetPage ¶
func (m *ListResponse) GetPage() int32
func (*ListResponse) GetPageSize ¶
func (m *ListResponse) GetPageSize() int32
func (*ListResponse) GetTotal ¶
func (m *ListResponse) GetTotal() int32
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) Reset ¶
func (m *ListResponse) Reset()
func (*ListResponse) String ¶
func (m *ListResponse) String() string
func (*ListResponse) Validate ¶
func (this *ListResponse) Validate() error
func (*ListResponse) XXX_DiscardUnknown ¶
func (m *ListResponse) XXX_DiscardUnknown()
func (*ListResponse) XXX_Marshal ¶
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResponse) XXX_Merge ¶
func (m *ListResponse) XXX_Merge(src proto.Message)
func (*ListResponse) XXX_Size ¶
func (m *ListResponse) XXX_Size() int
func (*ListResponse) XXX_Unmarshal ¶
func (m *ListResponse) XXX_Unmarshal(b []byte) error
type ListResponseWrapper ¶
type ListResponseWrapper 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 *ListResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ListApi返回
func (*ListResponseWrapper) Descriptor ¶
func (*ListResponseWrapper) Descriptor() ([]byte, []int)
func (*ListResponseWrapper) GetCode ¶
func (m *ListResponseWrapper) GetCode() int32
func (*ListResponseWrapper) GetCodeExplain ¶
func (m *ListResponseWrapper) GetCodeExplain() string
func (*ListResponseWrapper) GetData ¶
func (m *ListResponseWrapper) GetData() *ListResponse
func (*ListResponseWrapper) GetError ¶
func (m *ListResponseWrapper) GetError() string
func (*ListResponseWrapper) ProtoMessage ¶
func (*ListResponseWrapper) ProtoMessage()
func (*ListResponseWrapper) Reset ¶
func (m *ListResponseWrapper) Reset()
func (*ListResponseWrapper) String ¶
func (m *ListResponseWrapper) String() string
func (*ListResponseWrapper) Validate ¶
func (this *ListResponseWrapper) Validate() error
func (*ListResponseWrapper) XXX_DiscardUnknown ¶
func (m *ListResponseWrapper) XXX_DiscardUnknown()
func (*ListResponseWrapper) XXX_Marshal ¶
func (m *ListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResponseWrapper) XXX_Merge ¶
func (m *ListResponseWrapper) XXX_Merge(src proto.Message)
func (*ListResponseWrapper) XXX_Size ¶
func (m *ListResponseWrapper) XXX_Size() int
func (*ListResponseWrapper) XXX_Unmarshal ¶
func (m *ListResponseWrapper) XXX_Unmarshal(b []byte) error
type Service ¶
type Service interface {
List(context.Context, *ListRequest) (*ListResponse, error)
}
Service is the server API for event service.
Click to show internal directories.
Click to hide internal directories.