base

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(
	config entity.Config,
	sql *sqlite.SQLite,

) *API

func (*API) ChangeEntity

func (a *API) ChangeEntity(items, condition map[string]any, operation string) error

ChangeEntity - entity operations

func (*API) GetEntity

func (a *API) GetEntity(conditional map[string]any) (*entity.User, error)

GetEntity user

func (*API) ListEntity

func (a *API) ListEntity() ([]*entity.User, error)

ListEntity users

Jump to

Keyboard shortcuts

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