lmock

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoader

func NewLoader(_ context.Context, logger *zap.SugaredLogger) func(key string, cfg []byte) (loader.Loader, error)

Types

type Loader

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

func (*Loader) Add

func (l *Loader) Add(context.Context, *model.Model, util.ValueMap) ([]interface{}, error)

func (*Loader) Connection

func (l *Loader) Connection(context.Context) (interface{}, error)

func (*Loader) Count

func (l *Loader) Count(context.Context, *model.Model) (int, error)

func (*Loader) Default

func (l *Loader) Default(context.Context, *model.Model) ([]interface{}, error)

func (*Loader) Get

func (l *Loader) Get(context.Context, *model.Model, []interface{}) (*result.Result, error)

func (*Loader) List

func (l *Loader) List(_ context.Context, m *model.Model, _ *filter.Options) (*result.Result, error)

func (*Loader) Query

func (*Loader) Remove

func (l *Loader) Remove(context.Context, *model.Model, []string, []interface{}, int) (int, error)

func (*Loader) Save

func (l *Loader) Save(context.Context, *model.Model, []interface{}, util.ValueMap) ([]interface{}, error)

func (*Loader) Schema

func (l *Loader) Schema(context.Context) (*schema.Schema, error)

Jump to

Keyboard shortcuts

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