gorepo

package module
v0.0.0-...-b44657c Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 7 Imported by: 2

README

Vardius - gorepo

Build Status Coverage Status

Go repository interface.

ABOUT

Contributors:

Want to contribute ? Feel free to send pull requests!

Have problems, bugs, feature ideas? We are using the github issue tracker to manage them.

License

This package is released under the MIT license. See the complete license in the package:

LICENSE

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewSQL = newRepository

Functions

func Register

func Register(name string, r Repository)

func Repositories

func Repositories() []string

func Unregister

func Unregister(name string)

Types

type Repository

type Repository interface {
	GetAll() (interface{}, error)
	Get(int64) (interface{}, error)
	Save(interface{}) error
	Remove(...int64) (interface{}, error)
}

func Get

func Get(name string) (Repository, error)

Jump to

Keyboard shortcuts

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