clefs

package
v0.0.0-...-4c79daf Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminAnythingCreateHandler

func AdminAnythingCreateHandler(c *gin.Context)

Create

func AdminAnythingEditHandler

func AdminAnythingEditHandler(c *gin.Context)

Edit

func AdminAnythingListHandler

func AdminAnythingListHandler(c *gin.Context)

List

func AdminAnythingNewHandler

func AdminAnythingNewHandler(c *gin.Context)

New

func AdminAnythingShowHandler

func AdminAnythingShowHandler(c *gin.Context)

Show

func AdminAnythingUpdateHandler

func AdminAnythingUpdateHandler(c *gin.Context)

Update

func AnythingFulltextListHandler

func AnythingFulltextListHandler(c *gin.Context)

func AnythingPutFulltextAllHandler

func AnythingPutFulltextAllHandler(c *gin.Context)

func AnythingPutFulltexts

func AnythingPutFulltexts(ctx context.Context, idx string, anys []Anything) error

func AppendAnythingResources

func AppendAnythingResources(group *gin.RouterGroup)

func NewGormDB

func NewGormDB(c *gin.Context) (db *gorm.DB, err error)

Types

type Anything

type Anything struct {
	ID        int       //generic.Type
	UserID    int       //generic.Type
	CreatedAt time.Time //generic.Type
	UpdatedAt time.Time //generic.Type
	Errors    error     `sql:"-"` //generic.Type
	// contains filtered or unexported fields

} //generic.Type

Anything is defined as base Struct for genny

func (*Anything) AsJSON

func (any *Anything) AsJSON() gin.H

func (Anything) Somethings

func (x Anything) Somethings() (instances []Something)

type Something

type Something struct {
	ID         int //generic.Type
	UserID     int //generic.Type
	AnythingID int //generic.Type
	// contains filtered or unexported fields

} //generic.Type

func (Something) AnythingOptions

func (x Something) AnythingOptions() string

Jump to

Keyboard shortcuts

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