stressql - ActiveState ActiveGo 1.8
...

Package stressql

import "github.com/influxdata/influxdb/stress/v2/stressql"
Overview
Index
Subdirectories

Overview ▾

func ParseStatements

func ParseStatements(file string) ([]statement.Statement, error)

ParseStatements takes a configFile and returns a slice of Statements

type Scanner

Scanner scans the file and tokenizes the raw text

type Scanner struct {
    // contains filtered or unexported fields
}

func NewScanner

func NewScanner(r io.Reader) *Scanner

NewScanner returns a Scanner

func (*Scanner) Scan

func (s *Scanner) Scan() (tok Token, lit string)

Scan moves the Scanner forward one character

type Token

Token represents a lexical token.

type Token int

These are the lexical tokens used by the file parser

const (
    ILLEGAL Token = iota
    EOF
    STATEMENT
    BREAK
)

Subdirectories

Name Synopsis
..
statement