Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 2023 Changes in this version + var ErrIntOverflowDiagnosticspb = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthDiagnosticspb = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupDiagnosticspb = fmt.Errorf("proto: unexpected end of group") + var LogLevel_name = map[int32]string + var LogLevel_value = map[string]int32 + var SearchLogRequest_Target_name = map[int32]string + var SearchLogRequest_Target_value = map[string]int32 + var ServerInfoType_name = map[int32]string + var ServerInfoType_value = map[string]int32 + func RegisterDiagnosticsServer(s *grpc.Server, srv DiagnosticsServer) + type DiagnosticsClient interface + SearchLog func(ctx context.Context, in *SearchLogRequest, opts ...grpc.CallOption) (Diagnostics_SearchLogClient, error) + ServerInfo func(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) + func NewDiagnosticsClient(cc *grpc.ClientConn) DiagnosticsClient + type DiagnosticsServer interface + SearchLog func(*SearchLogRequest, Diagnostics_SearchLogServer) error + ServerInfo func(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error) + type Diagnostics_SearchLogClient interface + Recv func() (*SearchLogResponse, error) + type Diagnostics_SearchLogServer interface + Send func(*SearchLogResponse) error + type LogLevel int32 + const LogLevel_Critical + const LogLevel_Debug + const LogLevel_Error + const LogLevel_Info + const LogLevel_Trace + const LogLevel_UNKNOWN + const LogLevel_Warn + func (LogLevel) EnumDescriptor() ([]byte, []int) + func (x LogLevel) String() string + type LogMessage struct + Level LogLevel + Message string + Time int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*LogMessage) Descriptor() ([]byte, []int) + func (*LogMessage) ProtoMessage() + func (m *LogMessage) GetLevel() LogLevel + func (m *LogMessage) GetMessage() string + func (m *LogMessage) GetTime() int64 + func (m *LogMessage) Marshal() (dAtA []byte, err error) + func (m *LogMessage) MarshalTo(dAtA []byte) (int, error) + func (m *LogMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *LogMessage) Reset() + func (m *LogMessage) Size() (n int) + func (m *LogMessage) String() string + func (m *LogMessage) Unmarshal(dAtA []byte) error + func (m *LogMessage) XXX_DiscardUnknown() + func (m *LogMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *LogMessage) XXX_Merge(src proto.Message) + func (m *LogMessage) XXX_Size() int + func (m *LogMessage) XXX_Unmarshal(b []byte) error + type SearchLogRequest struct + EndTime int64 + Levels []LogLevel + Patterns []string + StartTime int64 + Target SearchLogRequest_Target + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SearchLogRequest) Descriptor() ([]byte, []int) + func (*SearchLogRequest) ProtoMessage() + func (m *SearchLogRequest) GetEndTime() int64 + func (m *SearchLogRequest) GetLevels() []LogLevel + func (m *SearchLogRequest) GetPatterns() []string + func (m *SearchLogRequest) GetStartTime() int64 + func (m *SearchLogRequest) GetTarget() SearchLogRequest_Target + func (m *SearchLogRequest) Marshal() (dAtA []byte, err error) + func (m *SearchLogRequest) MarshalTo(dAtA []byte) (int, error) + func (m *SearchLogRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SearchLogRequest) Reset() + func (m *SearchLogRequest) Size() (n int) + func (m *SearchLogRequest) String() string + func (m *SearchLogRequest) Unmarshal(dAtA []byte) error + func (m *SearchLogRequest) XXX_DiscardUnknown() + func (m *SearchLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SearchLogRequest) XXX_Merge(src proto.Message) + func (m *SearchLogRequest) XXX_Size() int + func (m *SearchLogRequest) XXX_Unmarshal(b []byte) error + type SearchLogRequest_Target int32 + const SearchLogRequest_Normal + const SearchLogRequest_Slow + func (SearchLogRequest_Target) EnumDescriptor() ([]byte, []int) + func (x SearchLogRequest_Target) String() string + type SearchLogResponse struct + Messages []*LogMessage + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SearchLogResponse) Descriptor() ([]byte, []int) + func (*SearchLogResponse) ProtoMessage() + func (m *SearchLogResponse) GetMessages() []*LogMessage + func (m *SearchLogResponse) Marshal() (dAtA []byte, err error) + func (m *SearchLogResponse) MarshalTo(dAtA []byte) (int, error) + func (m *SearchLogResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SearchLogResponse) Reset() + func (m *SearchLogResponse) Size() (n int) + func (m *SearchLogResponse) String() string + func (m *SearchLogResponse) Unmarshal(dAtA []byte) error + func (m *SearchLogResponse) XXX_DiscardUnknown() + func (m *SearchLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SearchLogResponse) XXX_Merge(src proto.Message) + func (m *SearchLogResponse) XXX_Size() int + func (m *SearchLogResponse) XXX_Unmarshal(b []byte) error + type ServerInfoItem struct + Name string + Pairs []*ServerInfoPair + Tp string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ServerInfoItem) Descriptor() ([]byte, []int) + func (*ServerInfoItem) ProtoMessage() + func (m *ServerInfoItem) GetName() string + func (m *ServerInfoItem) GetPairs() []*ServerInfoPair + func (m *ServerInfoItem) GetTp() string + func (m *ServerInfoItem) Marshal() (dAtA []byte, err error) + func (m *ServerInfoItem) MarshalTo(dAtA []byte) (int, error) + func (m *ServerInfoItem) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ServerInfoItem) Reset() + func (m *ServerInfoItem) Size() (n int) + func (m *ServerInfoItem) String() string + func (m *ServerInfoItem) Unmarshal(dAtA []byte) error + func (m *ServerInfoItem) XXX_DiscardUnknown() + func (m *ServerInfoItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ServerInfoItem) XXX_Merge(src proto.Message) + func (m *ServerInfoItem) XXX_Size() int + func (m *ServerInfoItem) XXX_Unmarshal(b []byte) error + type ServerInfoPair struct + Key string + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ServerInfoPair) Descriptor() ([]byte, []int) + func (*ServerInfoPair) ProtoMessage() + func (m *ServerInfoPair) GetKey() string + func (m *ServerInfoPair) GetValue() string + func (m *ServerInfoPair) Marshal() (dAtA []byte, err error) + func (m *ServerInfoPair) MarshalTo(dAtA []byte) (int, error) + func (m *ServerInfoPair) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ServerInfoPair) Reset() + func (m *ServerInfoPair) Size() (n int) + func (m *ServerInfoPair) String() string + func (m *ServerInfoPair) Unmarshal(dAtA []byte) error + func (m *ServerInfoPair) XXX_DiscardUnknown() + func (m *ServerInfoPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ServerInfoPair) XXX_Merge(src proto.Message) + func (m *ServerInfoPair) XXX_Size() int + func (m *ServerInfoPair) XXX_Unmarshal(b []byte) error + type ServerInfoRequest struct + Tp ServerInfoType + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ServerInfoRequest) Descriptor() ([]byte, []int) + func (*ServerInfoRequest) ProtoMessage() + func (m *ServerInfoRequest) GetTp() ServerInfoType + func (m *ServerInfoRequest) Marshal() (dAtA []byte, err error) + func (m *ServerInfoRequest) MarshalTo(dAtA []byte) (int, error) + func (m *ServerInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ServerInfoRequest) Reset() + func (m *ServerInfoRequest) Size() (n int) + func (m *ServerInfoRequest) String() string + func (m *ServerInfoRequest) Unmarshal(dAtA []byte) error + func (m *ServerInfoRequest) XXX_DiscardUnknown() + func (m *ServerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ServerInfoRequest) XXX_Merge(src proto.Message) + func (m *ServerInfoRequest) XXX_Size() int + func (m *ServerInfoRequest) XXX_Unmarshal(b []byte) error + type ServerInfoResponse struct + Items []*ServerInfoItem + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ServerInfoResponse) Descriptor() ([]byte, []int) + func (*ServerInfoResponse) ProtoMessage() + func (m *ServerInfoResponse) GetItems() []*ServerInfoItem + func (m *ServerInfoResponse) Marshal() (dAtA []byte, err error) + func (m *ServerInfoResponse) MarshalTo(dAtA []byte) (int, error) + func (m *ServerInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ServerInfoResponse) Reset() + func (m *ServerInfoResponse) Size() (n int) + func (m *ServerInfoResponse) String() string + func (m *ServerInfoResponse) Unmarshal(dAtA []byte) error + func (m *ServerInfoResponse) XXX_DiscardUnknown() + func (m *ServerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ServerInfoResponse) XXX_Merge(src proto.Message) + func (m *ServerInfoResponse) XXX_Size() int + func (m *ServerInfoResponse) XXX_Unmarshal(b []byte) error + type ServerInfoType int32 + const ServerInfoType_All + const ServerInfoType_HardwareInfo + const ServerInfoType_LoadInfo + const ServerInfoType_SystemInfo + func (ServerInfoType) EnumDescriptor() ([]byte, []int) + func (x ServerInfoType) String() string + type UnimplementedDiagnosticsServer struct + func (*UnimplementedDiagnosticsServer) SearchLog(req *SearchLogRequest, srv Diagnostics_SearchLogServer) error + func (*UnimplementedDiagnosticsServer) ServerInfo(ctx context.Context, req *ServerInfoRequest) (*ServerInfoResponse, error)