todov1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_todo_v1_todo_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Ref to the document row this comment belongs to.
	Note        *Note  `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
	Body        string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	Author      string `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"`
	Resolved    bool   `protobuf:"varint,5,opt,name=resolved,proto3" json:"resolved,omitempty"`
	CreatedAtMs int64  `protobuf:"varint,6,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
	// contains filtered or unexported fields
}

A comment on a range of a note. The range itself lives INSIDE the note's text document as a mark keyed "comment:<id>" (expand NONE), so it moves with the text; this row carries the comment's content and lifecycle and merges per-field LWW like any entity. Text edit and annotation write ship in one batch so they are atomic and undo together.

func (*Annotation) Descriptor deprecated

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

Deprecated: Use Annotation.ProtoReflect.Descriptor instead.

func (*Annotation) GetAuthor

func (x *Annotation) GetAuthor() string

func (*Annotation) GetBody

func (x *Annotation) GetBody() string

func (*Annotation) GetCreatedAtMs

func (x *Annotation) GetCreatedAtMs() int64

func (*Annotation) GetId

func (x *Annotation) GetId() string

func (*Annotation) GetNote

func (x *Annotation) GetNote() *Note

func (*Annotation) GetResolved

func (x *Annotation) GetResolved() bool

func (*Annotation) ProtoMessage

func (*Annotation) ProtoMessage()

func (*Annotation) ProtoReflect

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

func (*Annotation) Reset

func (x *Annotation) Reset()

func (*Annotation) String

func (x *Annotation) String() string

type CompleteAllArgs

type CompleteAllArgs struct {

	// When true, also mark already-completed todos (no-op, exercises masks).
	IncludeCompleted bool `protobuf:"varint,1,opt,name=include_completed,json=includeCompleted,proto3" json:"include_completed,omitempty"`
	// contains filtered or unexported fields
}

Args for the "complete_all" custom mutator.

func (*CompleteAllArgs) Descriptor deprecated

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

Deprecated: Use CompleteAllArgs.ProtoReflect.Descriptor instead.

func (*CompleteAllArgs) GetIncludeCompleted

func (x *CompleteAllArgs) GetIncludeCompleted() bool

func (*CompleteAllArgs) ProtoMessage

func (*CompleteAllArgs) ProtoMessage()

func (*CompleteAllArgs) ProtoReflect

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

func (*CompleteAllArgs) Reset

func (x *CompleteAllArgs) Reset()

func (*CompleteAllArgs) String

func (x *CompleteAllArgs) String() string

type Note

type Note struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

A collaborative document (the demo's shared workspace notes). body holds an encoded convergent text document: concurrent edits merge without interleaving, and comment marks anchored to ranges travel with the text.

func (*Note) Descriptor deprecated

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

Deprecated: Use Note.ProtoReflect.Descriptor instead.

func (*Note) GetBody

func (x *Note) GetBody() []byte

func (*Note) GetId

func (x *Note) GetId() string

func (*Note) ProtoMessage

func (*Note) ProtoMessage()

func (*Note) ProtoReflect

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

func (*Note) Reset

func (x *Note) Reset()

func (*Note) String

func (x *Note) String() string

type Todo

type Todo struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title     string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Completed bool   `protobuf:"varint,3,opt,name=completed,proto3" json:"completed,omitempty"`
	// Milliseconds since epoch, set by the creating client. Used for ordering
	// in the UI only; the server never interprets it.
	CreatedAtMs int64 `protobuf:"varint,4,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
	// Fractional-indexing order key (generateKeyBetween). Reordering patches
	// this one field on one row; plain string comparison gives the list
	// order. Empty sorts first (legacy rows), falling back to created_at_ms.
	SortKey string `protobuf:"bytes,5,opt,name=sort_key,json=sortKey,proto3" json:"sort_key,omitempty"`
	// contains filtered or unexported fields
}

func (*Todo) Descriptor deprecated

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

Deprecated: Use Todo.ProtoReflect.Descriptor instead.

func (*Todo) GetCompleted

func (x *Todo) GetCompleted() bool

func (*Todo) GetCreatedAtMs

func (x *Todo) GetCreatedAtMs() int64

func (*Todo) GetId

func (x *Todo) GetId() string

func (*Todo) GetSortKey

func (x *Todo) GetSortKey() string

func (*Todo) GetTitle

func (x *Todo) GetTitle() string

func (*Todo) ProtoMessage

func (*Todo) ProtoMessage()

func (*Todo) ProtoReflect

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

func (*Todo) Reset

func (x *Todo) Reset()

func (*Todo) String

func (x *Todo) String() string

Jump to

Keyboard shortcuts

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