File: object.go

package info (click to toggle)
mtail 3.2.24-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,384 kB
  • sloc: yacc: 647; makefile: 226; sh: 78; lisp: 77; awk: 17
file content (19 lines) | stat: -rw-r--r-- 645 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2017 Google Inc. All Rights Reserved.
// This file is available under the Apache license.

package code

import (
	"regexp"

	"github.com/jaqx0r/mtail/internal/metrics"
)

// Object is the data and bytecode resulting from compiled program source.
type Object struct {
	Program        []Instr           // The program bytecode.
	Strings        []string          // Static strings.
	Regexps        []*regexp.Regexp  // Static regular expressions.
	Metrics        []*metrics.Metric // Metrics accessible to this program.
	LogRestriction []string          // logs this program can be used against - if empty can be applied to any log
}