rtTaskDb

package
v0.0.0-...-c85b86a Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BunTask

type BunTask struct {
	bun.BaseModel `bun:"table:task_list"`

	ID           string    `bun:"id,pk,type:uuid"`
	Text         string    `bun:"text,notnull"`
	CreationTime time.Time `bun:",nullzero,notnull,default:current_timestamp"`
}

type RtTaskDb

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

func NewRtTaskDb

func NewRtTaskDb() RtTaskDb

func (RtTaskDb) Add

func (r RtTaskDb) Add(t task.Task) bool

func (RtTaskDb) GetAll

func (r RtTaskDb) GetAll() []task.Task

func (RtTaskDb) GetTask

func (r RtTaskDb) GetTask(s string) (task.Task, bool)

func (RtTaskDb) Remove

func (r RtTaskDb) Remove(s string) bool

func (RtTaskDb) RemoveAll

func (r RtTaskDb) RemoveAll() bool

Jump to

Keyboard shortcuts

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