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