lmock

package
v0.4.26 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoader

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

Types

type Loader

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

func (*Loader) Add

func (*Loader) Connection

func (l *Loader) Connection(context.Context) (any, 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) ([]any, error)

func (*Loader) Get

func (l *Loader) Get(context.Context, *model.Model, []any) (*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, []any, int) (int, error)

func (*Loader) Save

func (l *Loader) Save(context.Context, *model.Model, []any, util.ValueMap) ([]any, 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