store

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2017 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Copyright 2017 Joan Llopis. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

View Source
const (
	// DISCONNECTED indicates that there is no connection with the Storer
	DISCONNECTED = iota
	// CONNECTED indicate that the connection with the Storer is up and running
	CONNECTED
)

Variables

View Source
var (
	// StatusStr is a string representation of the status of the connections with the Storer
	StatusStr = []string{"Disconnected", "Connected"}
)

Functions

This section is empty.

Types

type Job

type Options

type Options map[string]interface{}

Options is a map to hold the database connection options

type Storer

type Storer interface {
	// Conecta con el Store
	Dial(options Options) error
	// Status devuelve el estado de la conexión
	Status() (int, string)
	// Close cierra la conexión con el Store
	Close() error
	Job
}

Storer es la interfaz que deben implementar los diferentes backends que realizen la persistencia del microservicio

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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