service

package
v0.0.0-...-d476a9b Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostsPayload

func PostsPayload(value []Post) []*models.Item

Types

type DatabaseType

type DatabaseType struct {
	Prefix      string
	Description string
	Example     string
	Factory     func(string) HelloHandler
}

type HelloGeneric

type HelloGeneric struct {
	// contains filtered or unexported fields
}

func NewHelloGeneric

func NewHelloGeneric(dialect string, dataSourceName string) HelloGeneric

func (HelloGeneric) AddMulti

func (HelloGeneric) DestroyOne

func (HelloGeneric) Find

func (HelloGeneric) GetOne

func (HelloGeneric) UpdateOne

type HelloHandler

func NewHello

func NewHello(database string) HelloHandler

func NewHelloPgSQL

func NewHelloPgSQL(dataSourceName string) HelloHandler

func NewHelloSQLite

func NewHelloSQLite(dataSourceName string) HelloHandler

type HelloPgSQL

type HelloPgSQL struct {
	HelloGeneric
}

func (HelloPgSQL) AddMulti

func (HelloPgSQL) UpdateOne

func (self HelloPgSQL) UpdateOne(params operations.UpdateOneParams) middleware.Responder

type Post

type Post struct {
	ID          int64  `db:"id"`
	Description string `db:"description"`
	Completed   bool   `db:"completed"`
}

func (Post) Payload

func (self Post) Payload() *models.Item

Jump to

Keyboard shortcuts

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