service

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrParseBlob is returned when the blob can't be parsed with bblfsh.
	ErrParseBlob = errors.NewKind("unable to parse the given blob using bblfsh: %s")

	// ErrUnmarshalUAST is returned when an error arises unmarshaling UASTs.
	ErrUnmarshalUAST = errors.NewKind("error unmarshaling UAST: %s")

	// ErrMarshalUAST is returned when an error arises marshaling UASTs.
	ErrMarshalUAST = errors.NewKind("error marshaling uast node: %s")
)

Functions

func UnmarshalNodes added in v0.4.0

func UnmarshalNodes(data []byte) (nodes.Array, error)

UnmarshalNodes returns UAST nodes from data marshaled by gitbase

Types

type Language added in v0.0.7

type Language struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

func DriverManifestsToLangs added in v0.0.7

func DriverManifestsToLangs(drivers []bblfsh.DriverManifest) []Language

type ParseResponse added in v0.0.7

type ParseResponse struct {
	UAST nodes.Node `json:"uast"`
	Lang string     `json:"language"`
}

type SQLDB

type SQLDB interface {
	Close() error
	Conn(context.Context) (*sql.Conn, error)
	Query(query string, args ...interface{}) (*sql.Rows, error)
	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
	QueryRow(query string, args ...interface{}) *sql.Row
	Ping() error
	Exec(query string, args ...interface{}) (sql.Result, error)
}

SQLDB describes a *sql.DB

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL