File: common.go

package info (click to toggle)
prometheus-process-exporter 0.4.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 600 kB
  • sloc: sh: 329; makefile: 94
file content (18 lines) | stat: -rw-r--r-- 309 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package common

import "fmt"

type (
	ProcAttributes struct {
		Name     string
		Cmdline  []string
		Username string
	}

	MatchNamer interface {
		// MatchAndName returns false if the match failed, otherwise
		// true and the resulting name.
		MatchAndName(ProcAttributes) (bool, string)
		fmt.Stringer
	}
)