Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Jul 20, 2021
1 parent 4463ecc commit 11d3ed8
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 13 deletions.
26 changes: 26 additions & 0 deletions core/component/Profiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,37 @@ package component

import (
"context"
"fmt"
"time"

log "github.com/sirupsen/logrus"
)

// Level log level type
type Level int

const (
// Debug const
Debug Level = iota
// Info const
Info

// CorralationID const
CorralationID
)

// String implements stringer interface.
func (l Level) String() string {
switch l {
case Debug:
return "debug"
case Info:
return "info"
default:
return fmt.Sprintf("unknown state: %d", l)
}
}

// Profiler type
type Profiler struct {
ctx context.Context
Expand Down
Loading

0 comments on commit 11d3ed8

Please sign in to comment.