gremlin

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GremlinClient

type GremlinClient struct {
	Endpoint string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(endpoint string) (*GremlinClient, error)

func (*GremlinClient) Close

func (c *GremlinClient) Close()

func (*GremlinClient) Connect

func (c *GremlinClient) Connect() error

func (*GremlinClient) Query

func (c *GremlinClient) Query(q string) ([]byte, error)

func (*GremlinClient) QueryElements

func (c *GremlinClient) QueryElements(q string) ([]GremlinElement, error)

type GremlinElement

type GremlinElement struct {
	ID         GremlinID         `json:"id"`
	Label      string            `json:"label"`
	Type       string            `json:"type"`
	Properties GremlinProperties `json:"properties"`
}

type GremlinID

type GremlinID string

func (*GremlinID) UnmarshalJSON

func (i *GremlinID) UnmarshalJSON(b []byte) error

type GremlinProperties

type GremlinProperties map[string][]GremlinProperty

func (*GremlinProperties) UnmarshalJSON

func (p *GremlinProperties) UnmarshalJSON(b []byte) error

type GremlinPropertiesEncoder

type GremlinPropertiesEncoder struct {
	bytes.Buffer
}

func (*GremlinPropertiesEncoder) Encode

func (p *GremlinPropertiesEncoder) Encode(v interface{}) error

func (*GremlinPropertiesEncoder) EncodeInt64

func (p *GremlinPropertiesEncoder) EncodeInt64(i int64) error

func (*GremlinPropertiesEncoder) EncodeKVPair

func (p *GremlinPropertiesEncoder) EncodeKVPair(k string, v interface{}) error

func (*GremlinPropertiesEncoder) EncodeMap

func (p *GremlinPropertiesEncoder) EncodeMap(m map[string]interface{}) error

func (*GremlinPropertiesEncoder) EncodeString

func (p *GremlinPropertiesEncoder) EncodeString(s string) error

func (*GremlinPropertiesEncoder) EncodeUint64

func (p *GremlinPropertiesEncoder) EncodeUint64(i uint64) error

type GremlinProperty

type GremlinProperty struct {
	ID    GremlinID   `json:"id"`
	Value interface{} `json:"value"`
}

Jump to

Keyboard shortcuts

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