Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/engine/internal/util/queue/fair/scope.go

17 lines
396 B

package fair
import "strings"
// A Scope denotes a named area within a [Queue] where items may be queued.
type Scope []string
// String returns the full name of the scope, with each element separated by a
// slash.
func (s Scope) String() string {
return strings.Join(s, "/")
}
// Name returns the local name of the scope (last element).
func (s Scope) Name() string {
return s[len(s)-1]
}