core

package
v0.0.0-...-f266b67 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: LGPL-2.1, LGPL-2.1-or-later Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlatTable

type FlatTable interface {
	TableName() string
	Populate(db *gorm.DB) error
}

type Model

type Model interface {
	ForeignKeys() []string
}

type Response

type Response struct {
	Code   errors.ErrorCode `json:"code,omitempty"`
	Status int              `json:"-"`
	Title  string           `json:"title,omitempty"`
	Data   interface{}      `json:"data,omitempty"`
	Errors error            `json:"errors,omitempty"`
}

func (*Response) ServeStreamFromMinio

func (r *Response) ServeStreamFromMinio(ctx echo.Context, object *minio.Object) error

func (*Response) ServeStreamFromMinioAsDownload

func (r *Response) ServeStreamFromMinioAsDownload(ctx echo.Context, object *minio.Object) error

func (*Response) ServeStreamFromMinioAsImage

func (r *Response) ServeStreamFromMinioAsImage(ctx echo.Context, object *minio.Object) error

func (*Response) ServerJSON

func (r *Response) ServerJSON(ctx echo.Context) error

type Table

type Table interface {
	TableName() string
}

type View

type View interface {
	TableName() string
	CreateView(tx *gorm.DB) error
	DropView(tx *gorm.DB) error
}

Jump to

Keyboard shortcuts

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