Documentation ¶
Index ¶
- func PostsPayload(value []Post) []*models.Item
- type DatabaseType
- type HelloGeneric
- func (self HelloGeneric) AddMulti(params operations.AddMultiParams) middleware.Responder
- func (self HelloGeneric) DestroyOne(params operations.DestroyOneParams) middleware.Responder
- func (self HelloGeneric) Find(params operations.FindParams) middleware.Responder
- func (self HelloGeneric) GetOne(params operations.GetOneParams) middleware.Responder
- func (self HelloGeneric) UpdateOne(params operations.UpdateOneParams) middleware.Responder
- type HelloHandler
- type HelloPgSQL
- type Post
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostsPayload ¶
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 (self HelloGeneric) AddMulti(params operations.AddMultiParams) middleware.Responder
func (HelloGeneric) DestroyOne ¶
func (self HelloGeneric) DestroyOne(params operations.DestroyOneParams) middleware.Responder
func (HelloGeneric) Find ¶
func (self HelloGeneric) Find(params operations.FindParams) middleware.Responder
func (HelloGeneric) GetOne ¶
func (self HelloGeneric) GetOne(params operations.GetOneParams) middleware.Responder
func (HelloGeneric) UpdateOne ¶
func (self HelloGeneric) UpdateOne(params operations.UpdateOneParams) middleware.Responder
type HelloHandler ¶
type HelloHandler interface { AddMulti(params operations.AddMultiParams) middleware.Responder DestroyOne(params operations.DestroyOneParams) middleware.Responder Find(params operations.FindParams) middleware.Responder GetOne(params operations.GetOneParams) middleware.Responder UpdateOne(params operations.UpdateOneParams) middleware.Responder }
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 (self HelloPgSQL) AddMulti(params operations.AddMultiParams) middleware.Responder
func (HelloPgSQL) UpdateOne ¶
func (self HelloPgSQL) UpdateOne(params operations.UpdateOneParams) middleware.Responder
Click to show internal directories.
Click to hide internal directories.