Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TimeStampLayout is accessed in dashboard, keep it public
TimeStampLayout = "2006/01/02 15:04:05.000 -07:00"
)
Variables ¶
This section is empty.
Functions ¶
func ParseLogLevel ¶
ParseLogLevel returns LogLevel from string and return LogLevel_Info if the string is an invalid level string
Types ¶
type DiagnosticsServer ¶
type DiagnosticsServer struct {
// contains filtered or unexported fields
}
func NewDiagnosticsServer ¶
func NewDiagnosticsServer(logFile string) *DiagnosticsServer
func (*DiagnosticsServer) SearchLog ¶
func (d *DiagnosticsServer) SearchLog(req *pb.SearchLogRequest, stream pb.Diagnostics_SearchLogServer) (err error)
SearchLog implements the DiagnosticsServer interface.
func (*DiagnosticsServer) ServerInfo ¶
func (d *DiagnosticsServer) ServerInfo(ctx context.Context, req *pb.ServerInfoRequest) (*pb.ServerInfoResponse, error)
ServerInfo implements the DiagnosticsServer interface.
Click to show internal directories.
Click to hide internal directories.