gearpg

package module
v0.0.0-...-8829b06 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 7 Imported by: 0

README

GeaRPG

GeaRPG

Motivation

quick integration of gogearbox + go-pg + rest-query-parser

https://github.com/gogearbox/gearbox

https://github.com/timsolov/rest-query-parser

https://github.com/go-pg/pg

Status

Project is in pre-alpha status.

Getting started

TODO:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	//mount path
	Route string
	//rest-query-parser validations
	Validations rqp.Validations
	//rest-query-parser field to db column mapping
	Replacer rqp.Replacer
	//factory that makes one instance of request entity
	MakeOne func() interface{}
	//factory that makes slice request entity
	MakeSlice func() interface{}
}

type GeaRPG

type GeaRPG struct {
	Gear gearbox.Gearbox
	PG   *pg.DB
}

func (GeaRPG) With

func (m GeaRPG) With(options ...*Endpoint)

Jump to

Keyboard shortcuts

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