task

package
v0.12.16 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const C_Task int64 = 4065096731

Variables

View Source
var PoolTask = poolTask{}

Functions

This section is empty.

Types

type Task

type Task struct {
	ID       int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Title    string   `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
	TODOs    []string `protobuf:"bytes,3,rep,name=TODOs,proto3" json:"TODOs,omitempty"`
	DueDate  int64    `protobuf:"varint,4,opt,name=DueDate,proto3" json:"DueDate,omitempty"`
	Username string   `protobuf:"bytes,5,opt,name=Username,proto3" json:"Username,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Clone

func (x *Task) Clone() *Task

func (*Task) DeepCopy

func (x *Task) DeepCopy(z *Task)

func (*Task) Descriptor deprecated

func (*Task) Descriptor() ([]byte, []int)

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetDueDate

func (x *Task) GetDueDate() int64

func (*Task) GetID

func (x *Task) GetID() int64

func (*Task) GetTODOs

func (x *Task) GetTODOs() []string

func (*Task) GetTitle

func (x *Task) GetTitle() string

func (*Task) GetUsername

func (x *Task) GetUsername() string

func (*Task) HasTODO

func (x *Task) HasTODO(xx string) bool

func (*Task) Marshal

func (x *Task) Marshal() ([]byte, error)

func (*Task) MarshalJSON

func (x *Task) MarshalJSON() ([]byte, error)

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

func (x *Task) ProtoReflect() protoreflect.Message

func (*Task) PushToContext

func (x *Task) PushToContext(ctx *edge.RequestCtx)

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

func (*Task) Unmarshal

func (x *Task) Unmarshal(b []byte) error

func (*Task) UnmarshalJSON

func (x *Task) UnmarshalJSON(b []byte) error

type TaskLocalRepo

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

func NewTaskLocalRepo

func NewTaskLocalRepo(s rony.Store) *TaskLocalRepo

func (*TaskLocalRepo) Create

func (r *TaskLocalRepo) Create(m *Task) error

func (*TaskLocalRepo) CreateWithTxn

func (r *TaskLocalRepo) CreateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Task) (err error)

func (*TaskLocalRepo) Delete

func (r *TaskLocalRepo) Delete(id int64) error

func (*TaskLocalRepo) DeleteWithTxn

func (r *TaskLocalRepo) DeleteWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, id int64) error

func (*TaskLocalRepo) Iter

func (r *TaskLocalRepo) Iter(
	pk TaskPrimaryKey, ito *store.IterOption, cb func(m *Task) bool,
) error

func (*TaskLocalRepo) IterWithTxn

func (r *TaskLocalRepo) IterWithTxn(
	txn *rony.StoreTxn, alloc *tools.Allocator, offset TaskPrimaryKey, ito *store.IterOption, cb func(m *Task) bool,
) error

func (*TaskLocalRepo) List

func (r *TaskLocalRepo) List(
	pk TaskPrimaryKey, lo *store.ListOption, cond func(m *Task) bool,
) ([]*Task, error)

func (*TaskLocalRepo) ListByUsername

func (r *TaskLocalRepo) ListByUsername(username string, lo *store.ListOption, cond func(*Task) bool) ([]*Task, error)

func (*TaskLocalRepo) ListWithTxn

func (r *TaskLocalRepo) ListWithTxn(
	txn *rony.StoreTxn, alloc *tools.Allocator, offset TaskPrimaryKey, lo *store.ListOption, cond func(m *Task) bool,
) ([]*Task, error)

func (*TaskLocalRepo) Read

func (r *TaskLocalRepo) Read(id int64, m *Task) (*Task, error)

func (*TaskLocalRepo) ReadWithTxn

func (r *TaskLocalRepo) ReadWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, id int64, m *Task) (*Task, error)

func (*TaskLocalRepo) Save

func (r *TaskLocalRepo) Save(m *Task) error

func (*TaskLocalRepo) SaveWithTxn

func (r *TaskLocalRepo) SaveWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Task) (err error)

func (*TaskLocalRepo) Update

func (r *TaskLocalRepo) Update(id int64, m *Task) error

func (*TaskLocalRepo) UpdateWithTxn

func (r *TaskLocalRepo) UpdateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Task) error

type TaskPK

type TaskPK struct {
	ID int64
}

type TaskPrimaryKey

type TaskPrimaryKey interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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