repositories

package
v0.0.0-...-11781d4 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseRunner

type DatabaseRunner interface {
	Run(q arangolite.Runnable) ([]byte, error)
}

type Repository

type Repository struct {
	snakepit.Repository
	DB     DatabaseRunner
	Client *gentleman.Client
}

func NewRepository

func NewRepository(
	c *viper.Viper,
	l *logrus.Entry,
	j *snakepit.JSON,
	db DatabaseRunner,
	cli *gentleman.Client,
) *Repository

func (*Repository) Run

func (r *Repository) Run(q arangolite.Runnable, response interface{}) error

func (*Repository) Send

func (r *Repository) Send(authPayload, method, url string, body, response interface{}) error

Jump to

Keyboard shortcuts

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