Documentation ¶
Overview ¶
Package servicepb is a generated protocol buffer package.
It is generated from these files:
service.proto
It has these top-level messages:
CheckListRequest CheckListResponse CheckEnableRequest CheckEnableResponse CheckDisableRequest CheckDisableResponse Check
Index ¶
- Variables
- func RegisterRedalertServiceServer(s *grpc.Server, srv RedalertServiceServer)
- type Check
- type CheckDisableRequest
- type CheckDisableResponse
- type CheckEnableRequest
- type CheckEnableResponse
- type CheckListRequest
- type CheckListResponse
- type Check_Status
- type RedalertServiceClient
- type RedalertServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var Check_Status_name = map[int32]string{
0: "DISABLED",
1: "UNKNOWN",
2: "FAILING",
3: "SUCCESSFUL",
}
View Source
var Check_Status_value = map[string]int32{
"DISABLED": 0,
"UNKNOWN": 1,
"FAILING": 2,
"SUCCESSFUL": 3,
}
Functions ¶
func RegisterRedalertServiceServer ¶
func RegisterRedalertServiceServer(s *grpc.Server, srv RedalertServiceServer)
Types ¶
type Check ¶
type Check struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"` Status Check_Status `protobuf:"varint,4,opt,name=status,enum=servicepb.Check_Status" json:"status,omitempty"` Enabled bool `protobuf:"varint,5,opt,name=enabled" json:"enabled,omitempty"` }
func (*Check) Descriptor ¶
func (*Check) GetEnabled ¶ added in v0.2.2
func (*Check) GetStatus ¶ added in v0.2.2
func (m *Check) GetStatus() Check_Status
func (*Check) ProtoMessage ¶
func (*Check) ProtoMessage()
type CheckDisableRequest ¶
type CheckDisableRequest struct {
ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
}
func (*CheckDisableRequest) Descriptor ¶
func (*CheckDisableRequest) Descriptor() ([]byte, []int)
func (*CheckDisableRequest) GetID ¶ added in v0.2.2
func (m *CheckDisableRequest) GetID() string
func (*CheckDisableRequest) ProtoMessage ¶
func (*CheckDisableRequest) ProtoMessage()
func (*CheckDisableRequest) Reset ¶
func (m *CheckDisableRequest) Reset()
func (*CheckDisableRequest) String ¶
func (m *CheckDisableRequest) String() string
type CheckDisableResponse ¶
type CheckDisableResponse struct { }
func (*CheckDisableResponse) Descriptor ¶
func (*CheckDisableResponse) Descriptor() ([]byte, []int)
func (*CheckDisableResponse) ProtoMessage ¶
func (*CheckDisableResponse) ProtoMessage()
func (*CheckDisableResponse) Reset ¶
func (m *CheckDisableResponse) Reset()
func (*CheckDisableResponse) String ¶
func (m *CheckDisableResponse) String() string
type CheckEnableRequest ¶
type CheckEnableRequest struct {
ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
}
func (*CheckEnableRequest) Descriptor ¶
func (*CheckEnableRequest) Descriptor() ([]byte, []int)
func (*CheckEnableRequest) GetID ¶ added in v0.2.2
func (m *CheckEnableRequest) GetID() string
func (*CheckEnableRequest) ProtoMessage ¶
func (*CheckEnableRequest) ProtoMessage()
func (*CheckEnableRequest) Reset ¶
func (m *CheckEnableRequest) Reset()
func (*CheckEnableRequest) String ¶
func (m *CheckEnableRequest) String() string
type CheckEnableResponse ¶
type CheckEnableResponse struct { }
func (*CheckEnableResponse) Descriptor ¶
func (*CheckEnableResponse) Descriptor() ([]byte, []int)
func (*CheckEnableResponse) ProtoMessage ¶
func (*CheckEnableResponse) ProtoMessage()
func (*CheckEnableResponse) Reset ¶
func (m *CheckEnableResponse) Reset()
func (*CheckEnableResponse) String ¶
func (m *CheckEnableResponse) String() string
type CheckListRequest ¶
type CheckListRequest struct { }
func (*CheckListRequest) Descriptor ¶
func (*CheckListRequest) Descriptor() ([]byte, []int)
func (*CheckListRequest) ProtoMessage ¶
func (*CheckListRequest) ProtoMessage()
func (*CheckListRequest) Reset ¶
func (m *CheckListRequest) Reset()
func (*CheckListRequest) String ¶
func (m *CheckListRequest) String() string
type CheckListResponse ¶
type CheckListResponse struct {
Members []*Check `protobuf:"bytes,1,rep,name=members" json:"members,omitempty"`
}
func (*CheckListResponse) Descriptor ¶
func (*CheckListResponse) Descriptor() ([]byte, []int)
func (*CheckListResponse) GetMembers ¶
func (m *CheckListResponse) GetMembers() []*Check
func (*CheckListResponse) ProtoMessage ¶
func (*CheckListResponse) ProtoMessage()
func (*CheckListResponse) Reset ¶
func (m *CheckListResponse) Reset()
func (*CheckListResponse) String ¶
func (m *CheckListResponse) String() string
type Check_Status ¶
type Check_Status int32
const ( Check_DISABLED Check_Status = 0 Check_UNKNOWN Check_Status = 1 Check_FAILING Check_Status = 2 Check_SUCCESSFUL Check_Status = 3 )
func (Check_Status) EnumDescriptor ¶
func (Check_Status) EnumDescriptor() ([]byte, []int)
func (Check_Status) String ¶
func (x Check_Status) String() string
type RedalertServiceClient ¶
type RedalertServiceClient interface { // CheckList lists all the checks in configuration CheckList(ctx context.Context, in *CheckListRequest, opts ...grpc.CallOption) (*CheckListResponse, error) // CheckEnable enables a check CheckEnable(ctx context.Context, in *CheckEnableRequest, opts ...grpc.CallOption) (*CheckEnableResponse, error) // CheckDisable disables a check CheckDisable(ctx context.Context, in *CheckDisableRequest, opts ...grpc.CallOption) (*CheckDisableResponse, error) }
func NewRedalertServiceClient ¶
func NewRedalertServiceClient(cc *grpc.ClientConn) RedalertServiceClient
type RedalertServiceServer ¶
type RedalertServiceServer interface { // CheckList lists all the checks in configuration CheckList(context.Context, *CheckListRequest) (*CheckListResponse, error) // CheckEnable enables a check CheckEnable(context.Context, *CheckEnableRequest) (*CheckEnableResponse, error) // CheckDisable disables a check CheckDisable(context.Context, *CheckDisableRequest) (*CheckDisableResponse, error) }
Click to show internal directories.
Click to hide internal directories.