-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhints.go
48 lines (38 loc) · 832 Bytes
/
hints.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package tower
import "time"
type HTTPCodeHint interface {
// Gets HTTP Status Code for the type.
HTTPCode() int
}
type CodeHint interface {
// Gets the original code of the type.
Code() int
}
type CallerHint interface {
// Caller returns the caller of this type.
Caller() Caller
}
type MessageHint interface {
// Message returns the message of the type.
Message() string
}
type KeyHint interface {
// Key returns the key for this type.
Key() string
}
type ContextHint interface {
// Context returns the context of this type.
Context() []any
}
type ServiceHint interface {
// Service returns the service information.
Service() Service
}
type LevelHint interface {
// Level returns the level of this type.
Level() Level
}
type TimeHint interface {
// Time returns the time of this type.
Time() time.Time
}