Versions in this module Expand all Collapse all v1 v1.0.0 Mar 14, 2018 Changes in this version + const StatusAuthenticate + const StatusInvalidRequestArguments + const StatusMalformedRequest + const StatusNoContent + const StatusPartialContent + const StatusScriptEvaluationError + const StatusServerError + const StatusServerSerializationError + const StatusServerTimeout + const StatusSuccess + const StatusUnauthorized + var ErrorMsg = map[int]string + func CreateConnection() (conn net.Conn, server *url.URL, err error) + func GraphSONSerializer(req *Request) ([]byte, error) + func NewCluster(s ...string) (err error) + func SplitServers(connString string) (servers []*url.URL, err error) + type AuthInfo struct + ChallengeId string + Pass string + User string + func NewAuthInfo(options ...OptAuth) (*AuthInfo, error) + type Bind map[string]interface + type Client struct + Auth []OptAuth + Remote *url.URL + Ws *websocket.Conn + func NewClient(urlStr string, options ...OptAuth) (*Client, error) + func (c *Client) Authenticate(requestId string) ([]byte, error) + func (c *Client) Exec(req *Request) ([]byte, error) + func (c *Client) ExecQuery(query string) ([]byte, error) + func (c *Client) ReadResponse() (data []byte, err error) + type FormattedReq struct + Args *RequestArgs + Op string + Processor string + RequestId interface{} + func NewFormattedReq(req *Request) FormattedReq + type OptAuth func(*AuthInfo) error + func OptAuthEnv() OptAuth + func OptAuthUserPass(user, pass string) OptAuth + type Request struct + Args *RequestArgs + Op string + Processor string + RequestId string + func Query(query string) *Request + func (req *Request) Aliases(aliases map[string]string) *Request + func (req *Request) Bindings(bindings Bind) *Request + func (req *Request) ManageTransaction(flag bool) *Request + func (req *Request) Session(session string) *Request + func (req *Request) SetProcessor(processor string) *Request + type RequestArgs struct + Aliases map[string]string + BatchSize int + Bindings Bind + Gremlin string + Language string + ManageTransaction bool + Rebindings Bind + Sasl string + Session string + type Response struct + RequestId string + Result *ResponseResult + Status *ResponseStatus + func (r Response) String() string + type ResponseResult struct + Data json.RawMessage + Meta map[string]interface{} + type ResponseStatus struct + Attributes map[string]interface{} + Code int + Message string Incompatible versions in this module v2.0.0+incompatible May 13, 2019