collection

package
v0.0.0-...-d33b70a Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsrCollection

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

func NewAsrCollection

func NewAsrCollection(databaseName string) (*AsrCollection, error)

func (*AsrCollection) Add

func (ac *AsrCollection) Add(asrModel any) error

func (*AsrCollection) Del

func (ac *AsrCollection) Del(uniqueId string) error

func (*AsrCollection) Get

func (ac *AsrCollection) Get(uniqueId string) (any, error)

func (*AsrCollection) List

func (ac *AsrCollection) List() (any, error)

func (*AsrCollection) Update

func (ac *AsrCollection) Update(asrModel any) error

type Collection

type Collection interface {
	Add(any) error
	Update(any) error
	Get(string) (any, error)
	List() (any, error)
	Del(string) error
}

type TaskCollection

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

func NewTaskCollection

func NewTaskCollection(databaseName string) (*TaskCollection, error)

func (*TaskCollection) Add

func (tc *TaskCollection) Add(task any) error

func (*TaskCollection) Del

func (tc *TaskCollection) Del(uniqueId string) error

func (*TaskCollection) Get

func (tc *TaskCollection) Get(uniqueId string) (any, error)

func (*TaskCollection) List

func (tc *TaskCollection) List() (any, error)

func (*TaskCollection) Update

func (tc *TaskCollection) Update(job any) error

Jump to

Keyboard shortcuts

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