model

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TaskBinding = task_{
	Id:  1,
	Uid: 1306759095002958910,
}

Functions

func ObjectBoxModel

func ObjectBoxModel() *objectbox.Model

Types

type Task

type Task struct {
	Id           uint64
	Text         string
	DateCreated  int64
	DateFinished int64
}

type TaskBox

type TaskBox struct {
	*objectbox.Box
}

func BoxForTask

func BoxForTask(ob *objectbox.ObjectBox) *TaskBox

func (*TaskBox) Get

func (box *TaskBox) Get(id uint64) (*Task, error)

func (*TaskBox) GetAll

func (box *TaskBox) GetAll() ([]*Task, error)

func (*TaskBox) Remove

func (box *TaskBox) Remove(entity *Task) (err error)

Jump to

Keyboard shortcuts

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