Documentation
¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type GetAllAlertRuleListResponse
- func (*GetAllAlertRuleListResponse) Descriptor() ([]byte, []int)
- func (m *GetAllAlertRuleListResponse) GetCode() int32
- func (m *GetAllAlertRuleListResponse) GetCodeExplain() string
- func (m *GetAllAlertRuleListResponse) GetData() []*alert_manager.AlertRule
- func (m *GetAllAlertRuleListResponse) GetMessage() string
- func (*GetAllAlertRuleListResponse) ProtoMessage()
- func (m *GetAllAlertRuleListResponse) Reset()
- func (m *GetAllAlertRuleListResponse) String() string
- func (this *GetAllAlertRuleListResponse) Validate() error
- func (m *GetAllAlertRuleListResponse) XXX_DiscardUnknown()
- func (m *GetAllAlertRuleListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllAlertRuleListResponse) XXX_Merge(src proto.Message)
- func (m *GetAllAlertRuleListResponse) XXX_Size() int
- func (m *GetAllAlertRuleListResponse) XXX_Unmarshal(b []byte) error
- type GetAllAlertRuleListResponseWrapper
- func (*GetAllAlertRuleListResponseWrapper) Descriptor() ([]byte, []int)
- func (m *GetAllAlertRuleListResponseWrapper) GetCode() int32
- func (m *GetAllAlertRuleListResponseWrapper) GetCodeExplain() string
- func (m *GetAllAlertRuleListResponseWrapper) GetData() *GetAllAlertRuleListResponse
- func (m *GetAllAlertRuleListResponseWrapper) GetError() string
- func (*GetAllAlertRuleListResponseWrapper) ProtoMessage()
- func (m *GetAllAlertRuleListResponseWrapper) Reset()
- func (m *GetAllAlertRuleListResponseWrapper) String() string
- func (this *GetAllAlertRuleListResponseWrapper) Validate() error
- func (m *GetAllAlertRuleListResponseWrapper) XXX_DiscardUnknown()
- func (m *GetAllAlertRuleListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllAlertRuleListResponseWrapper) XXX_Merge(src proto.Message)
- func (m *GetAllAlertRuleListResponseWrapper) XXX_Size() int
- func (m *GetAllAlertRuleListResponseWrapper) 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 {
GetAllAlertRuleList(ctx context.Context, in *types.Empty) (*GetAllAlertRuleListResponse, error)
}
Client is the client API for alert_rule 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 GetAllAlertRuleListResponse ¶
type GetAllAlertRuleListResponse struct { // //code 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"` // //返回码字符串表示 Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message" form:"message"` // //data Data []*alert_manager.AlertRule `protobuf:"bytes,4,rep,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetAllAlertRuleList返回
func (*GetAllAlertRuleListResponse) Descriptor ¶
func (*GetAllAlertRuleListResponse) Descriptor() ([]byte, []int)
func (*GetAllAlertRuleListResponse) GetCode ¶
func (m *GetAllAlertRuleListResponse) GetCode() int32
func (*GetAllAlertRuleListResponse) GetCodeExplain ¶
func (m *GetAllAlertRuleListResponse) GetCodeExplain() string
func (*GetAllAlertRuleListResponse) GetData ¶
func (m *GetAllAlertRuleListResponse) GetData() []*alert_manager.AlertRule
func (*GetAllAlertRuleListResponse) GetMessage ¶
func (m *GetAllAlertRuleListResponse) GetMessage() string
func (*GetAllAlertRuleListResponse) ProtoMessage ¶
func (*GetAllAlertRuleListResponse) ProtoMessage()
func (*GetAllAlertRuleListResponse) Reset ¶
func (m *GetAllAlertRuleListResponse) Reset()
func (*GetAllAlertRuleListResponse) String ¶
func (m *GetAllAlertRuleListResponse) String() string
func (*GetAllAlertRuleListResponse) Validate ¶
func (this *GetAllAlertRuleListResponse) Validate() error
func (*GetAllAlertRuleListResponse) XXX_DiscardUnknown ¶
func (m *GetAllAlertRuleListResponse) XXX_DiscardUnknown()
func (*GetAllAlertRuleListResponse) XXX_Marshal ¶
func (m *GetAllAlertRuleListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllAlertRuleListResponse) XXX_Merge ¶
func (m *GetAllAlertRuleListResponse) XXX_Merge(src proto.Message)
func (*GetAllAlertRuleListResponse) XXX_Size ¶
func (m *GetAllAlertRuleListResponse) XXX_Size() int
func (*GetAllAlertRuleListResponse) XXX_Unmarshal ¶
func (m *GetAllAlertRuleListResponse) XXX_Unmarshal(b []byte) error
type GetAllAlertRuleListResponseWrapper ¶
type GetAllAlertRuleListResponseWrapper 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 *GetAllAlertRuleListResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetAllAlertRuleListApi返回
func (*GetAllAlertRuleListResponseWrapper) Descriptor ¶
func (*GetAllAlertRuleListResponseWrapper) Descriptor() ([]byte, []int)
func (*GetAllAlertRuleListResponseWrapper) GetCode ¶
func (m *GetAllAlertRuleListResponseWrapper) GetCode() int32
func (*GetAllAlertRuleListResponseWrapper) GetCodeExplain ¶
func (m *GetAllAlertRuleListResponseWrapper) GetCodeExplain() string
func (*GetAllAlertRuleListResponseWrapper) GetData ¶
func (m *GetAllAlertRuleListResponseWrapper) GetData() *GetAllAlertRuleListResponse
func (*GetAllAlertRuleListResponseWrapper) GetError ¶
func (m *GetAllAlertRuleListResponseWrapper) GetError() string
func (*GetAllAlertRuleListResponseWrapper) ProtoMessage ¶
func (*GetAllAlertRuleListResponseWrapper) ProtoMessage()
func (*GetAllAlertRuleListResponseWrapper) Reset ¶
func (m *GetAllAlertRuleListResponseWrapper) Reset()
func (*GetAllAlertRuleListResponseWrapper) String ¶
func (m *GetAllAlertRuleListResponseWrapper) String() string
func (*GetAllAlertRuleListResponseWrapper) Validate ¶
func (this *GetAllAlertRuleListResponseWrapper) Validate() error
func (*GetAllAlertRuleListResponseWrapper) XXX_DiscardUnknown ¶
func (m *GetAllAlertRuleListResponseWrapper) XXX_DiscardUnknown()
func (*GetAllAlertRuleListResponseWrapper) XXX_Marshal ¶
func (m *GetAllAlertRuleListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllAlertRuleListResponseWrapper) XXX_Merge ¶
func (m *GetAllAlertRuleListResponseWrapper) XXX_Merge(src proto.Message)
func (*GetAllAlertRuleListResponseWrapper) XXX_Size ¶
func (m *GetAllAlertRuleListResponseWrapper) XXX_Size() int
func (*GetAllAlertRuleListResponseWrapper) XXX_Unmarshal ¶
func (m *GetAllAlertRuleListResponseWrapper) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.