Documentation
¶
Index ¶
Constants ¶
const ( TCP_SCHEME = "tcp" UNIX_SCHEME = "unix" )
Supported URL schemes over which to connect.
const ( DEFAULT_URL_SCHEME = TCP_SCHEME DEFAULT_URL_HOST = "127.0.0.1" DEFAULT_URL_PORT = "8100" DEFAULT_URL_STR = DEFAULT_URL_SCHEME + "://" + DEFAULT_URL_HOST + ":" + DEFAULT_URL_PORT )
Default URL to which to connect.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a populated graphdb struct pointer. l can be used to specify one's own logger (must implement Print). A nil Logger interface argument will default to using syslog. logLevel is used to control which log messages are emitted. urlStrs is a list of URLs to which to try to connect.
Types ¶
type Logger ¶
type Logger interface {
Print(v ...interface{})
}
Allows use of any datatype which implements Print, as a logger (ie. a log.Logger tied to syslog, or to os.Stderr/Stdout).
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
A Request to be sent to a graphd database. Currently this is just a wrapper around a string.
func NewRequest ¶
NewRequest returns a Request pointer initialized from the string parameter. The parameter should represent one request to be sent to a graphd database. A new line is automatically added.
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
A Response received from a graphd database. Currently this is just a wrapper around a string.
func NewResponse ¶
NewResponse returns a Response pointer initialized from the string parameter. The parameter should represent one response received from a graphd database.