Documentation
¶
Index ¶
- type GremlinClient
- type GremlinElement
- type GremlinID
- type GremlinProperties
- type GremlinPropertiesEncoder
- func (p *GremlinPropertiesEncoder) Encode(v interface{}) error
- func (p *GremlinPropertiesEncoder) EncodeInt64(i int64) error
- func (p *GremlinPropertiesEncoder) EncodeKVPair(k string, v interface{}) error
- func (p *GremlinPropertiesEncoder) EncodeMap(m map[string]interface{}) error
- func (p *GremlinPropertiesEncoder) EncodeString(s string) error
- func (p *GremlinPropertiesEncoder) EncodeUint64(i uint64) error
- type GremlinProperty
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 GremlinProperties ¶
type GremlinProperties map[string][]GremlinProperty
func (*GremlinProperties) UnmarshalJSON ¶
func (p *GremlinProperties) UnmarshalJSON(b []byte) error
type GremlinPropertiesEncoder ¶
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
Source Files
¶
- client.go
- restclient.go
- wsclient.go
Click to show internal directories.
Click to hide internal directories.