Documentation ¶
Index ¶
Constants ¶
View Source
const ( UTF8 = Encoding("utf8") Base64 = Encoding("base64") )
Variables ¶
View Source
var ( // Binary default location of the native driver binary. Should not // override this variable unless you know what are you doing. Binary = "/opt/driver/bin/native" )
View Source
var (
ErrNotRunning = serrors.NewKind("native driver is not running")
)
Functions ¶
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a wrapper of the native command. The operations with the driver are synchronous by design, this is controlled by a mutex. This means that only one parse request can attend at the same time.
type Encoding ¶
type Encoding string
Encoding is the Encoding used for the content string. Currently only UTF-8 or Base64 encodings are supported. You should use UTF-8 if you can and Base64 as a fallback.
func (*Encoding) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.