storage

package
v0.0.0-...-e7ab01c Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mssql

type Mssql struct {
	// contains filtered or unexported fields
}

Mssql is the struct representing the Mssql connection

func OpenConnection

func OpenConnection(config *configuration.Struct) (*Mssql, error)

OpenConnection opens a database connection and returns it

func (*Mssql) Close

func (m *Mssql) Close()

Close the Mssql connection

func (*Mssql) GetKVs

func (db *Mssql) GetKVs(prefix string) ([]consul.KV, error)

GetKVs reads KVs from the storage and returns all with the highest version

func (*Mssql) WriteKVs

func (db *Mssql) WriteKVs(kvs []consul.KV, ignoreDCs, incremental bool) error

WriteKVs writes a KV array to a MSSQL table TODO: Only write if value (in dc) changed

Jump to

Keyboard shortcuts

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