github.com/prometheus/common/expfmt.TextParser.currentToken (field)

33 uses

	github.com/prometheus/common/expfmt (current package)
		text_parse.go#L57: 	currentToken         bytes.Buffer  // Re-used each time a token has to be gathered from multiple bytes.
		text_parse.go#L176: 	keyword := p.currentToken.String()
		text_parse.go#L226: 	if p.currentToken.Len() == 0 {
		text_parse.go#L280: 	if p.currentToken.Len() == 0 {
		text_parse.go#L284: 	p.currentLabelPair = &dto.LabelPair{Name: proto.String(p.currentToken.String())}
		text_parse.go#L318: 	if !model.LabelValue(p.currentToken.String()).IsValid() {
		text_parse.go#L319: 		p.parseError(fmt.Sprintf("invalid label value %q", p.currentToken.String()))
		text_parse.go#L322: 	p.currentLabelPair.Value = proto.String(p.currentToken.String())
		text_parse.go#L395: 	value, err := parseFloat(p.currentToken.String())
		text_parse.go#L398: 		p.parseError(fmt.Sprintf("expected float as value, got %q", p.currentToken.String()))
		text_parse.go#L464: 	timestamp, err := strconv.ParseInt(p.currentToken.String(), 10, 64)
		text_parse.go#L467: 		p.parseError(fmt.Sprintf("expected integer as timestamp, got %q", p.currentToken.String()))
		text_parse.go#L474: 	if p.currentToken.Len() > 0 {
		text_parse.go#L475: 		p.parseError(fmt.Sprintf("spurious string after timestamp: %q", p.currentToken.String()))
		text_parse.go#L492: 	p.currentMF.Help = proto.String(p.currentToken.String())
		text_parse.go#L507: 	metricType, ok := dto.MetricType_value[strings.ToUpper(p.currentToken.String())]
		text_parse.go#L509: 		p.parseError(fmt.Sprintf("unknown metric type %q", p.currentToken.String()))
		text_parse.go#L548: 	p.currentToken.Reset()
		text_parse.go#L550: 		p.currentToken.WriteByte(p.currentByte)
		text_parse.go#L562: 	p.currentToken.Reset()
		text_parse.go#L568: 				p.currentToken.WriteByte(p.currentByte)
		text_parse.go#L570: 				p.currentToken.WriteByte('\n')
		text_parse.go#L583: 				p.currentToken.WriteByte(p.currentByte)
		text_parse.go#L595: 	p.currentToken.Reset()
		text_parse.go#L600: 		p.currentToken.WriteByte(p.currentByte)
		text_parse.go#L613: 	p.currentToken.Reset()
		text_parse.go#L618: 		p.currentToken.WriteByte(p.currentByte)
		text_parse.go#L632: 	p.currentToken.Reset()
		text_parse.go#L641: 				p.currentToken.WriteByte(p.currentByte)
		text_parse.go#L643: 				p.currentToken.WriteByte('\n')
		text_parse.go#L655: 			p.parseError(fmt.Sprintf("label value %q contains unescaped new-line", p.currentToken.String()))
		text_parse.go#L660: 			p.currentToken.WriteByte(p.currentByte)
		text_parse.go#L670: 	name := p.currentToken.String()