Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetContextSeverity ¶ added in v0.3.0
func SetContextSeverity(ctx context.Context, cs *ContextSeverity) context.Context
SetContextSeverity sets the ContextSeverity instance to context
Types ¶
type ContextSeverity ¶ added in v0.3.0
type ContextSeverity struct {
// contains filtered or unexported fields
}
ContextSeverity is list of severity that managed by context
func GetContextSeverity ¶ added in v0.3.0
func GetContextSeverity(ctx context.Context) *ContextSeverity
GetContextSeverity gets the ContextSeverity instance from context
func (*ContextSeverity) Add ¶ added in v0.3.0
func (c *ContextSeverity) Add(s Severity)
Add adds a list of severity
func (*ContextSeverity) Max ¶ added in v0.3.0
func (c *ContextSeverity) Max() Severity
Max returns max from list of severity
Click to show internal directories.
Click to hide internal directories.