Documentation
¶
Index ¶
- Variables
- type ChecklistItem
- func (*ChecklistItem) Descriptor() ([]byte, []int)deprecated
- func (x *ChecklistItem) GetDone() bool
- func (x *ChecklistItem) GetId() string
- func (x *ChecklistItem) GetText() string
- func (*ChecklistItem) ProtoMessage()
- func (x *ChecklistItem) ProtoReflect() protoreflect.Message
- func (x *ChecklistItem) Reset()
- func (x *ChecklistItem) String() string
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetAuthor() *User
- func (x *Comment) GetBody() string
- func (x *Comment) GetCreatedAtMs() int64
- func (x *Comment) GetId() string
- func (x *Comment) GetIssue() *Issue
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type Flat
- func (*Flat) Descriptor() ([]byte, []int)deprecated
- func (x *Flat) GetActive() bool
- func (x *Flat) GetAmount() int64
- func (x *Flat) GetAttrs() map[string]string
- func (x *Flat) GetCategory() string
- func (x *Flat) GetCount() int32
- func (x *Flat) GetCreatedAtMs() int64
- func (x *Flat) GetId() string
- func (x *Flat) GetName() string
- func (x *Flat) GetNote() string
- func (x *Flat) GetRatio() float64
- func (x *Flat) GetTags() []string
- func (*Flat) ProtoMessage()
- func (x *Flat) ProtoReflect() protoreflect.Message
- func (x *Flat) Reset()
- func (x *Flat) String() string
- type Issue
- func (*Issue) Descriptor() ([]byte, []int)deprecated
- func (x *Issue) GetAssignee() *User
- func (x *Issue) GetBlockedBy() []*Issue
- func (x *Issue) GetBody() string
- func (x *Issue) GetChecklist() []*ChecklistItem
- func (x *Issue) GetCreatedAtMs() int64
- func (x *Issue) GetEstimate() int32
- func (x *Issue) GetId() string
- func (x *Issue) GetLabels() []string
- func (x *Issue) GetPriority() int32
- func (x *Issue) GetProject() *Project
- func (x *Issue) GetReporter() *User
- func (x *Issue) GetState() string
- func (x *Issue) GetTitle() string
- func (x *Issue) GetUpdatedAtMs() int64
- func (*Issue) ProtoMessage()
- func (x *Issue) ProtoReflect() protoreflect.Message
- func (x *Issue) Reset()
- func (x *Issue) String() string
- type Label
- type Note
- func (*Note) Descriptor() ([]byte, []int)deprecated
- func (x *Note) GetBody() []byte
- func (x *Note) GetId() string
- func (x *Note) GetProject() *Project
- func (x *Note) GetTitle() string
- func (x *Note) GetUpdatedAtMs() int64
- func (*Note) ProtoMessage()
- func (x *Note) ProtoReflect() protoreflect.Message
- func (x *Note) Reset()
- func (x *Note) String() string
- type Project
- func (*Project) Descriptor() ([]byte, []int)deprecated
- func (x *Project) GetCreatedAtMs() int64
- func (x *Project) GetId() string
- func (x *Project) GetName() string
- func (x *Project) GetSlug() string
- func (x *Project) GetStatus() string
- func (*Project) ProtoMessage()
- func (x *Project) ProtoReflect() protoreflect.Message
- func (x *Project) Reset()
- func (x *Project) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetActive() bool
- func (x *User) GetAvatarUrl() string
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetName() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
var File_syncplane_bench_v1_bench_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ChecklistItem ¶
type ChecklistItem struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
Done bool `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
// contains filtered or unexported fields
}
Element of Issue.checklist. Not an entity; identity comes from the field's key_field.
func (*ChecklistItem) Descriptor
deprecated
func (*ChecklistItem) Descriptor() ([]byte, []int)
Deprecated: Use ChecklistItem.ProtoReflect.Descriptor instead.
func (*ChecklistItem) GetDone ¶
func (x *ChecklistItem) GetDone() bool
func (*ChecklistItem) GetId ¶
func (x *ChecklistItem) GetId() string
func (*ChecklistItem) GetText ¶
func (x *ChecklistItem) GetText() string
func (*ChecklistItem) ProtoMessage ¶
func (*ChecklistItem) ProtoMessage()
func (*ChecklistItem) ProtoReflect ¶
func (x *ChecklistItem) ProtoReflect() protoreflect.Message
func (*ChecklistItem) Reset ¶
func (x *ChecklistItem) Reset()
func (*ChecklistItem) String ¶
func (x *ChecklistItem) String() string
type Comment ¶
type Comment struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Issue *Issue `protobuf:"bytes,2,opt,name=issue,proto3" json:"issue,omitempty"`
Author *User `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
CreatedAtMs int64 `protobuf:"varint,5,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
// contains filtered or unexported fields
}
The append-heavy child. Comments outnumber issues, are small, and hang off a single reference — the shape that makes a reverse follow expensive and a recency window cheap.
func (*Comment) Descriptor
deprecated
func (*Comment) GetCreatedAtMs ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type Flat ¶
type Flat struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`
Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"`
Count int32 `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"`
Ratio float64 `protobuf:"fixed64,7,opt,name=ratio,proto3" json:"ratio,omitempty"`
Active bool `protobuf:"varint,8,opt,name=active,proto3" json:"active,omitempty"`
CreatedAtMs int64 `protobuf:"varint,9,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
Tags []string `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"`
Attrs map[string]string `` /* 138-byte string literal not displayed */
// contains filtered or unexported fields
}
The control. Deliberately the dullest row the engine can move: scalars, one repeated scalar and one map, no references, no text, no declared index. Its per-row bootstrap cost is the floor every other entity's cost is read against.
func (*Flat) Descriptor
deprecated
func (*Flat) GetCategory ¶
func (*Flat) GetCreatedAtMs ¶
func (*Flat) ProtoMessage ¶
func (*Flat) ProtoMessage()
func (*Flat) ProtoReflect ¶
func (x *Flat) ProtoReflect() protoreflect.Message
type Issue ¶
type Issue 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"`
// Plain string, not collaborative text: this is the payload-weight dial for
// the bulk entity, and giving it CRDT semantics would put text merge cost
// into every issue benchmark. Notes are where text is measured.
Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
// To-one ref: the row stores only project.id, the target resolves on read.
Project *Project `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
// Two refs to the same target, so reverse accessors disambiguate.
Assignee *User `protobuf:"bytes,5,opt,name=assignee,proto3" json:"assignee,omitempty"`
Reporter *User `protobuf:"bytes,6,opt,name=reporter,proto3" json:"reporter,omitempty"`
// To-many self-ref: a dependency chain, which is what `followDepth` > 1 has
// to walk transitively.
BlockedBy []*Issue `protobuf:"bytes,7,rep,name=blocked_by,json=blockedBy,proto3" json:"blocked_by,omitempty"`
State string `protobuf:"bytes,8,opt,name=state,proto3" json:"state,omitempty"`
Priority int32 `protobuf:"varint,9,opt,name=priority,proto3" json:"priority,omitempty"`
Estimate int32 `protobuf:"varint,10,opt,name=estimate,proto3" json:"estimate,omitempty"`
// Write recency as a field. `byRecency` windows rank by workspace sequence
// and need no field at all; this is its comparable counterpart, so a
// benchmark can price an ordering the server has to read rows to compute.
UpdatedAtMs int64 `protobuf:"varint,11,opt,name=updated_at_ms,json=updatedAtMs,proto3" json:"updated_at_ms,omitempty"`
CreatedAtMs int64 `protobuf:"varint,12,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
// Repeated scalar with a field mark — membership is a range read and one
// row occupies several index positions.
Labels []string `protobuf:"bytes,13,rep,name=labels,proto3" json:"labels,omitempty"`
// Keyed message list: merged per element rather than replaced whole, so a
// row's merge cost grows with the list rather than with the row.
Checklist []*ChecklistItem `protobuf:"bytes,14,rep,name=checklist,proto3" json:"checklist,omitempty"`
// contains filtered or unexported fields
}
The bulk entity. Roughly half of every tier's rows are issues, so bootstrap and window-maintenance numbers are dominated by this message's shape.
func (*Issue) Descriptor
deprecated
func (*Issue) GetAssignee ¶
func (*Issue) GetBlockedBy ¶
func (*Issue) GetChecklist ¶
func (x *Issue) GetChecklist() []*ChecklistItem
func (*Issue) GetCreatedAtMs ¶
func (*Issue) GetEstimate ¶
func (*Issue) GetPriority ¶
func (*Issue) GetProject ¶
func (*Issue) GetReporter ¶
func (*Issue) GetUpdatedAtMs ¶
func (*Issue) ProtoMessage ¶
func (*Issue) ProtoMessage()
func (*Issue) ProtoReflect ¶
func (x *Issue) ProtoReflect() protoreflect.Message
type Label ¶
type Label struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"`
// contains filtered or unexported fields
}
func (*Label) Descriptor
deprecated
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
func (*Label) ProtoReflect ¶
func (x *Label) ProtoReflect() protoreflect.Message
type Note ¶
type Note 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"`
Project *Project `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
UpdatedAtMs int64 `protobuf:"varint,5,opt,name=updated_at_ms,json=updatedAtMs,proto3" json:"updated_at_ms,omitempty"`
// contains filtered or unexported fields
}
Byte weight without row weight: few rows, each holding a collaborative-text document. Separated from Issue so the text CRDT's cost stays attributable instead of being spread across every issue in the corpus.
func (*Note) Descriptor
deprecated
func (*Note) GetProject ¶
func (*Note) GetUpdatedAtMs ¶
func (*Note) ProtoMessage ¶
func (*Note) ProtoMessage()
func (*Note) ProtoReflect ¶
func (x *Note) ProtoReflect() protoreflect.Message
type Project ¶
type Project struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Short human key ("ENG-2"), the shape a real tracker addresses by.
Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
CreatedAtMs int64 `protobuf:"varint,5,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
// contains filtered or unexported fields
}
Dimension entity: few rows, referenced by many. A follow from an issue lands here, so it is also what a partial-sync client picks up beyond its base scope.
func (*Project) Descriptor
deprecated
func (*Project) GetCreatedAtMs ¶
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
type User ¶
type User struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"`
// contains filtered or unexported fields
}
The other follow target. Issue points at it twice, which is what makes the reverse accessors disambiguate rather than collapse.
func (*User) Descriptor
deprecated
func (*User) GetAvatarUrl ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message