base

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	UseCache bool
	OnCount  func(ManagerI) uint
	OnAll    func(ManagerI) []Model
	OnFilter func(manager ManagerI, include Params, exclude ...Params) []Model
	// contains filtered or unexported fields
}

func NewManager

func NewManager(table Table) *Manager

func (*Manager) All

func (manager *Manager) All() []Model

func (*Manager) Broadcast

func (manager *Manager) Broadcast(next Nexter)

func (*Manager) CheckModel

func (manager *Manager) CheckModel(model Model, include Params, exclude ...Params) bool

func (*Manager) CheckPointers

func (manager *Manager) CheckPointers(model Model)

func (*Manager) Clear

func (manager *Manager) Clear()

func (*Manager) ClearId

func (manager *Manager) ClearId(id any)

func (*Manager) Copy

func (manager *Manager) Copy() ManagerI

func (*Manager) Count

func (manager *Manager) Count() uint

func (*Manager) Delete

func (manager *Manager) Delete(id any)

func (*Manager) Filter

func (manager *Manager) Filter(include Params, exclude ...Params) ManagerI

func (*Manager) First

func (manager *Manager) First() Model

func (*Manager) Get

func (manager *Manager) Get(id any) Model

func (*Manager) IsInstance

func (manager *Manager) IsInstance() bool

func (*Manager) Last

func (manager *Manager) Last() Model

func (*Manager) Store

func (manager *Manager) Store(id any, model Model)

func (*Manager) Table

func (manager *Manager) Table() Table

Jump to

Keyboard shortcuts

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