raizel

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: MIT Imports: 2 Imported by: 3

README

raizel Build Status Coverage Status Go Report Card

A persistence helper library that supports Firestore and PostgreSQL

Cassandra and MySQL support will be avaiable soon

dependencies

tools (you must provide the installation)
libraries

tests and coverage

  • run unit tests: make docker.test
  • run coverage: make docker.coverage.text
  • run html coverage: make docker.coverage.html

raizel usage

Find some samples in the test files. A better usage section will be avaiable soon ...

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("err_notfound")
)

Functions

This section is empty.

Types

type Entity

type Entity interface{}

type EntityKey

type EntityKey interface {
	EntityName() string
	Value() interface{}
	Name() string
}

func NewDynamicKey

func NewDynamicKey(entityName, keyName string, keyValue interface{}) EntityKey

type Repository

type Repository interface {
	Get(ctx context.Context, key EntityKey, entity Entity) error
	Set(ctx context.Context, key EntityKey, entity Entity) error
	Delete(ctx context.Context, key EntityKey) error
	Close(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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