-
Notifications
You must be signed in to change notification settings - Fork 0
/
id.go
36 lines (31 loc) · 781 Bytes
/
id.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
// /home/krylon/go/src/github.com/blicero/guang/logdomain/id.go
// -*- mode: go; coding: utf-8; -*-
// Created on 29. 10. 2022 by Benjamin Walkenhorst
// (c) 2022 Benjamin Walkenhorst
// Time-stamp: <2023-06-07 13:20:54 krylon>
// Package logdomain provides symbolic constants to identify the various
// pieces of the application that need to do logging.
package logdomain
//go:generate stringer -type=ID
// ID is an id...
type ID uint8
// These constants represent the pieces of the application that need to log stuff.
const (
Common ID = iota
Client
Database
DBPool
DNSSD
Web
)
// AllDomains returns a slice of all the valid values for ID.
func AllDomains() []ID {
return []ID{
Common,
Client,
Database,
DBPool,
DNSSD,
Web,
}
} // func AllDomains() []ID