Documentation
¶
Index ¶
- Variables
- type Annotation
- func (*Annotation) Descriptor() ([]byte, []int)deprecated
- func (x *Annotation) GetAuthor() string
- func (x *Annotation) GetBody() string
- func (x *Annotation) GetCreatedAtMs() int64
- func (x *Annotation) GetId() string
- func (x *Annotation) GetNote() *Note
- func (x *Annotation) GetResolved() bool
- func (*Annotation) ProtoMessage()
- func (x *Annotation) ProtoReflect() protoreflect.Message
- func (x *Annotation) Reset()
- func (x *Annotation) String() string
- type CompleteAllArgs
- type Note
- type Todo
- func (*Todo) Descriptor() ([]byte, []int)deprecated
- func (x *Todo) GetCompleted() bool
- func (x *Todo) GetCreatedAtMs() int64
- func (x *Todo) GetId() string
- func (x *Todo) GetSortKey() string
- func (x *Todo) GetTitle() string
- func (*Todo) ProtoMessage()
- func (x *Todo) ProtoReflect() protoreflect.Message
- func (x *Todo) Reset()
- func (x *Todo) String() string
Constants ¶
This section is empty.
Variables ¶
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) ProtoMessage ¶
func (*Note) ProtoMessage()
func (*Note) ProtoReflect ¶
func (x *Note) ProtoReflect() protoreflect.Message
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) GetCompleted ¶
func (*Todo) GetCreatedAtMs ¶
func (*Todo) GetSortKey ¶
func (*Todo) ProtoMessage ¶
func (*Todo) ProtoMessage()
func (*Todo) ProtoReflect ¶
func (x *Todo) ProtoReflect() protoreflect.Message