kvdbdriver

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: CC0-1.0, CC0-1.0, CC0-1.0 Imports: 15 Imported by: 0

Documentation

Overview

Package kvdbdriver implements the kvdb keyvalue driver.

The dataSource should be in the format:

kvdb://host[:port]/database[?param1=value1&...]
	or
kvdb://host[:port]/path/database[?param1=value1&...]

In the first case the connection will be made over TCP. In the second case the connection will be made over a web socket with connection details:

ws://host[:port]/path

Valid parameters are:

  • appname The application name to identify ourselves as.
  • ssldisabled Is SSL disabled for this connection?
  • sslcert The SSL certificate.

Any other parameters will be ignored.

The default TCP port number is specified by the constant kvdb.DefaultPort.

Index

Constants

View Source
const DriverName = "kvdb"

DriverName is the name used to register the driver.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(s string) (*kvdb.ClientConfig, string, error)

ParseURL parses the given URL into client configuration options and database name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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