Versions in this module Expand all Collapse all v1 v1.1.1 Jun 18, 2022 Changes in this version + var File_alertapi_alertapi_proto protoreflect.FileDescriptor + func RegisterAlertServiceServer(s *grpc.Server, srv AlertServiceServer) + type Alert struct + Content string + Disk string + Email bool + LogId int64 + MetricName string + Pagerduty bool + Resolved bool + ServerName string + Service string + Slack bool + SlackChannel string + Status int32 + Subject string + Timestamp string + func (*Alert) Descriptor() ([]byte, []int) + func (*Alert) ProtoMessage() + func (x *Alert) GetContent() string + func (x *Alert) GetDisk() string + func (x *Alert) GetEmail() bool + func (x *Alert) GetLogId() int64 + func (x *Alert) GetMetricName() string + func (x *Alert) GetPagerduty() bool + func (x *Alert) GetResolved() bool + func (x *Alert) GetServerName() string + func (x *Alert) GetService() string + func (x *Alert) GetSlack() bool + func (x *Alert) GetSlackChannel() string + func (x *Alert) GetStatus() int32 + func (x *Alert) GetSubject() string + func (x *Alert) GetTimestamp() string + func (x *Alert) ProtoReflect() protoreflect.Message + func (x *Alert) Reset() + func (x *Alert) String() string + type AlertArray struct + Alerts []*Alert + func (*AlertArray) Descriptor() ([]byte, []int) + func (*AlertArray) ProtoMessage() + func (x *AlertArray) GetAlerts() []*Alert + func (x *AlertArray) ProtoReflect() protoreflect.Message + func (x *AlertArray) Reset() + func (x *AlertArray) String() string + type AlertServiceClient interface + AlertRequest func(ctx context.Context, in *Request, opts ...grpc.CallOption) (*AlertArray, error) + HandleAlerts func(ctx context.Context, in *Alert, opts ...grpc.CallOption) (*Response, error) + func NewAlertServiceClient(cc grpc.ClientConnInterface) AlertServiceClient + type AlertServiceServer interface + AlertRequest func(context.Context, *Request) (*AlertArray, error) + HandleAlerts func(context.Context, *Alert) (*Response, error) + type Request struct + ServerName string + func (*Request) Descriptor() ([]byte, []int) + func (*Request) ProtoMessage() + func (x *Request) GetServerName() string + func (x *Request) ProtoReflect() protoreflect.Message + func (x *Request) Reset() + func (x *Request) String() string + type Response struct + Msg string + Success bool + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (x *Response) GetMsg() string + func (x *Response) GetSuccess() bool + func (x *Response) ProtoReflect() protoreflect.Message + func (x *Response) Reset() + func (x *Response) String() string + type Server struct + Database *memdb.Database + func (s *Server) AlertRequest(ctx context.Context, in *Request) (*AlertArray, error) + func (s *Server) HandleAlerts(ctx context.Context, in *Alert) (*Response, error) + type UnimplementedAlertServiceServer struct + func (*UnimplementedAlertServiceServer) AlertRequest(context.Context, *Request) (*AlertArray, error) + func (*UnimplementedAlertServiceServer) HandleAlerts(context.Context, *Alert) (*Response, error) + type Void struct + func (*Void) Descriptor() ([]byte, []int) + func (*Void) ProtoMessage() + func (x *Void) ProtoReflect() protoreflect.Message + func (x *Void) Reset() + func (x *Void) String() string