Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datasource ¶
type Datasource interface { Fields() map[string]Field Find(ctx QueryContext) (*ListResult, error) FindOne(ctx QueryContext) (*map[string]interface{}, error) Create(ctx QueryContext, data interface{}) (*map[string]interface{}, error) Update(ctx QueryContext, data interface{}) (ManyAffectedResult, error) Destroy(ctx QueryContext) (ManyAffectedResult, error) }
type ListResult ¶
type ManyAffectedResult ¶
type ManyAffectedResult struct {
TotalAffected int64
}
type Properties ¶
func (*Properties) GetLimit ¶
func (d *Properties) GetLimit(ctx QueryContext) int64
func (*Properties) GetSkip ¶
func (d *Properties) GetSkip(ctx QueryContext) int64
type SingleResult ¶
type SingleResult map[string]interface{}
Directories ¶
Path | Synopsis |
---|---|
Package datasourcemock is a generated GoMock package.
|
Package datasourcemock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.