service

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: GPL-3.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(env string) *logrus.Logger

NewLogger returns a logrus Logger

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 []protocol.DriverManifest) []Language

type Node added in v0.0.7

type Node uast.Node

func UnmarshallUAST added in v0.0.7

func UnmarshallUAST(data interface{}) ([]*Node, error)

UnmarshallUAST tries to cast data as [][]byte and unmarshall uast nodes

func (*Node) MarshalJSON added in v0.0.7

func (n *Node) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON representation of the Node

type ParseResponse added in v0.0.7

type ParseResponse protocol.ParseResponse

ParseResponse amends default MarshalJSON to be compatible with frontend

func (*ParseResponse) MarshalJSON added in v0.0.7

func (r *ParseResponse) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON representation of the protocol.ParseResponse

type SQLDB

type SQLDB interface {
	Close() 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
}

SQLDB describes a *sql.DB

Jump to

Keyboard shortcuts

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