Help us shape the future of Go! Take the 2026 Go Developer Survey

s4wave_canvas

package
v0.57.21 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const SRPCCanvasResourceServiceServiceID = "s4wave.canvas.CanvasResourceService"

Variables

View Source
var (
	NodeType_name = map[int32]string{
		0: "NODE_TYPE_UNKNOWN",
		1: "NODE_TYPE_TEXT",
		2: "NODE_TYPE_SHAPE",
		3: "NODE_TYPE_WORLD_OBJECT",
		4: "NODE_TYPE_DRAWING",
	}
	NodeType_value = map[string]int32{
		"NODE_TYPE_UNKNOWN":      0,
		"NODE_TYPE_TEXT":         1,
		"NODE_TYPE_SHAPE":        2,
		"NODE_TYPE_WORLD_OBJECT": 3,
		"NODE_TYPE_DRAWING":      4,
	}
)

Enum value maps for NodeType.

View Source
var (
	EdgeStyle_name = map[int32]string{
		0: "EDGE_STYLE_BEZIER",
		1: "EDGE_STYLE_STRAIGHT",
	}
	EdgeStyle_value = map[string]int32{
		"EDGE_STYLE_BEZIER":   0,
		"EDGE_STYLE_STRAIGHT": 1,
	}
)

Enum value maps for EdgeStyle.

Functions

func NewCanvasNodeBlock added in v0.57.2

func NewCanvasNodeBlock() block.Block

NewCanvasNodeBlock constructs a Canvas node block.

func NewCanvasStorageBlock added in v0.57.2

func NewCanvasStorageBlock() block.Block

NewCanvasStorageBlock constructs a Canvas storage root block.

func NewSRPCCanvasResourceServiceHandler

func NewSRPCCanvasResourceServiceHandler(impl SRPCCanvasResourceServiceServer, serviceID string) srpc.Handler

NewSRPCCanvasResourceServiceHandler constructs a new RPC handler. serviceID: if empty, uses default: s4wave.canvas.CanvasResourceService

func SRPCRegisterCanvasResourceService

func SRPCRegisterCanvasResourceService(mux srpc.Mux, impl SRPCCanvasResourceServiceServer) error

SRPCRegisterCanvasResourceService registers the implementation with the mux. Uses the default serviceID: s4wave.canvas.CanvasResourceService

func WriteCanvasState added in v0.57.2

func WriteCanvasState(
	ctx context.Context,
	bcs *block.Cursor,
	previous *CanvasState,
	next *CanvasState,
) error

WriteCanvasState writes a complete logical Canvas state through the pluggable block KVTX node index. Previous must be the complete logical state read from the same object root. A nil previous value reloads that state.

Types

type CanvasEdge

type CanvasEdge struct {

	// Id is the unique identifier for the edge.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// SourceNodeId is the source node.
	SourceNodeId string `protobuf:"bytes,2,opt,name=source_node_id,json=sourceNodeId,proto3" json:"sourceNodeId,omitempty"`
	// TargetNodeId is the target node.
	TargetNodeId string `protobuf:"bytes,3,opt,name=target_node_id,json=targetNodeId,proto3" json:"targetNodeId,omitempty"`
	// Label is an optional edge label.
	Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	// Style is the edge visual style.
	Style EdgeStyle `protobuf:"varint,5,opt,name=style,proto3" json:"style,omitempty"`
	// contains filtered or unexported fields
}

CanvasEdge is a user-drawn visual-only edge.

func (*CanvasEdge) CloneMessageVT

func (m *CanvasEdge) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*CanvasEdge) CloneVT

func (m *CanvasEdge) CloneVT() *CanvasEdge

func (*CanvasEdge) EqualMessageVT

func (this *CanvasEdge) EqualMessageVT(thatMsg any) bool

func (*CanvasEdge) EqualVT

func (this *CanvasEdge) EqualVT(that *CanvasEdge) bool

func (*CanvasEdge) GetId

func (x *CanvasEdge) GetId() string

func (*CanvasEdge) GetLabel

func (x *CanvasEdge) GetLabel() string

func (*CanvasEdge) GetSourceNodeId

func (x *CanvasEdge) GetSourceNodeId() string

func (*CanvasEdge) GetStyle

func (x *CanvasEdge) GetStyle() EdgeStyle

func (*CanvasEdge) GetTargetNodeId

func (x *CanvasEdge) GetTargetNodeId() string

func (*CanvasEdge) MarshalJSON

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

MarshalJSON marshals the CanvasEdge to JSON.

func (*CanvasEdge) MarshalProtoJSON

func (x *CanvasEdge) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CanvasEdge message to JSON.

func (*CanvasEdge) MarshalProtoText

func (x *CanvasEdge) MarshalProtoText() string

func (*CanvasEdge) MarshalToSizedBufferVT

func (m *CanvasEdge) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CanvasEdge) MarshalToVT

func (m *CanvasEdge) MarshalToVT(dAtA []byte) (int, error)

func (*CanvasEdge) MarshalVT

func (m *CanvasEdge) MarshalVT() (dAtA []byte, err error)

func (*CanvasEdge) ProtoMessage

func (*CanvasEdge) ProtoMessage()

func (*CanvasEdge) Reset

func (x *CanvasEdge) Reset()

func (*CanvasEdge) SizeVT

func (m *CanvasEdge) SizeVT() (n int)

func (*CanvasEdge) String

func (x *CanvasEdge) String() string

func (*CanvasEdge) UnmarshalJSON

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

UnmarshalJSON unmarshals the CanvasEdge from JSON.

func (*CanvasEdge) UnmarshalProtoJSON

func (x *CanvasEdge) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CanvasEdge message from JSON.

func (*CanvasEdge) UnmarshalVT

func (m *CanvasEdge) UnmarshalVT(dAtA []byte) error

type CanvasLayoutMetadata added in v0.51.8

type CanvasLayoutMetadata struct {

	// StableNodeId is the projection-stable node identity across reruns.
	StableNodeId string `protobuf:"bytes,1,opt,name=stable_node_id,json=stableNodeId,proto3" json:"stableNodeId,omitempty"`
	// Lane is the visual swimlane for the projected node.
	Lane string `protobuf:"bytes,2,opt,name=lane,proto3" json:"lane,omitempty"`
	// Rank is the deterministic dependency layer inside the projection.
	Rank int32 `protobuf:"varint,3,opt,name=rank,proto3" json:"rank,omitempty"`
	// Group is the visual grouping key for related projected nodes.
	Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"`
	// ProjectionOwner names the writer that owns this visual projection.
	ProjectionOwner string `protobuf:"bytes,5,opt,name=projection_owner,json=projectionOwner,proto3" json:"projectionOwner,omitempty"`
	// contains filtered or unexported fields
}

CanvasLayoutMetadata stores reusable projection layout metadata for a node.

func (*CanvasLayoutMetadata) CloneMessageVT added in v0.51.8

func (*CanvasLayoutMetadata) CloneVT added in v0.51.8

func (*CanvasLayoutMetadata) EqualMessageVT added in v0.51.8

func (this *CanvasLayoutMetadata) EqualMessageVT(thatMsg any) bool

func (*CanvasLayoutMetadata) EqualVT added in v0.51.8

func (this *CanvasLayoutMetadata) EqualVT(that *CanvasLayoutMetadata) bool

func (*CanvasLayoutMetadata) GetGroup added in v0.51.8

func (x *CanvasLayoutMetadata) GetGroup() string

func (*CanvasLayoutMetadata) GetLane added in v0.51.8

func (x *CanvasLayoutMetadata) GetLane() string

func (*CanvasLayoutMetadata) GetProjectionOwner added in v0.51.8

func (x *CanvasLayoutMetadata) GetProjectionOwner() string

func (*CanvasLayoutMetadata) GetRank added in v0.51.8

func (x *CanvasLayoutMetadata) GetRank() int32

func (*CanvasLayoutMetadata) GetStableNodeId added in v0.51.8

func (x *CanvasLayoutMetadata) GetStableNodeId() string

func (*CanvasLayoutMetadata) MarshalJSON added in v0.51.8

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

MarshalJSON marshals the CanvasLayoutMetadata to JSON.

func (*CanvasLayoutMetadata) MarshalProtoJSON added in v0.51.8

func (x *CanvasLayoutMetadata) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CanvasLayoutMetadata message to JSON.

func (*CanvasLayoutMetadata) MarshalProtoText added in v0.51.8

func (x *CanvasLayoutMetadata) MarshalProtoText() string

func (*CanvasLayoutMetadata) MarshalToSizedBufferVT added in v0.51.8

func (m *CanvasLayoutMetadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CanvasLayoutMetadata) MarshalToVT added in v0.51.8

func (m *CanvasLayoutMetadata) MarshalToVT(dAtA []byte) (int, error)

func (*CanvasLayoutMetadata) MarshalVT added in v0.51.8

func (m *CanvasLayoutMetadata) MarshalVT() (dAtA []byte, err error)

func (*CanvasLayoutMetadata) ProtoMessage added in v0.51.8

func (*CanvasLayoutMetadata) ProtoMessage()

func (*CanvasLayoutMetadata) Reset added in v0.51.8

func (x *CanvasLayoutMetadata) Reset()

func (*CanvasLayoutMetadata) SizeVT added in v0.51.8

func (m *CanvasLayoutMetadata) SizeVT() (n int)

func (*CanvasLayoutMetadata) String added in v0.51.8

func (x *CanvasLayoutMetadata) String() string

func (*CanvasLayoutMetadata) UnmarshalJSON added in v0.51.8

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

UnmarshalJSON unmarshals the CanvasLayoutMetadata from JSON.

func (*CanvasLayoutMetadata) UnmarshalProtoJSON added in v0.51.8

func (x *CanvasLayoutMetadata) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CanvasLayoutMetadata message from JSON.

func (*CanvasLayoutMetadata) UnmarshalVT added in v0.51.8

func (m *CanvasLayoutMetadata) UnmarshalVT(dAtA []byte) error

type CanvasNode

type CanvasNode struct {

	// Id is the unique identifier for the node.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// X is the x position in canvas space.
	X float64 `protobuf:"fixed64,2,opt,name=x,proto3" json:"x,omitempty"`
	// Y is the y position in canvas space.
	Y float64 `protobuf:"fixed64,3,opt,name=y,proto3" json:"y,omitempty"`
	// Width is the width in canvas space.
	Width float64 `protobuf:"fixed64,4,opt,name=width,proto3" json:"width,omitempty"`
	// Height is the height in canvas space.
	Height float64 `protobuf:"fixed64,5,opt,name=height,proto3" json:"height,omitempty"`
	// ZIndex is the rendering order (higher = front).
	ZIndex int32 `protobuf:"varint,6,opt,name=z_index,json=zIndex,proto3" json:"zIndex,omitempty"`
	// Type is the node type.
	Type NodeType `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"`
	// TextContent is the markdown source (TEXT nodes).
	TextContent string `protobuf:"bytes,8,opt,name=text_content,json=textContent,proto3" json:"textContent,omitempty"`
	// ShapeData is shape/drawing data (SHAPE/DRAWING nodes).
	ShapeData []byte `protobuf:"bytes,9,opt,name=shape_data,json=shapeData,proto3" json:"shapeData,omitempty"`
	// ObjectKey is the world object key (WORLD_OBJECT nodes).
	ObjectKey string `protobuf:"bytes,10,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
	// Pinned indicates the node was manually added to canvas.
	Pinned bool `protobuf:"varint,11,opt,name=pinned,proto3" json:"pinned,omitempty"`
	// ViewPath is the navigation path within the embedded viewer (WORLD_OBJECT nodes).
	ViewPath string `protobuf:"bytes,12,opt,name=view_path,json=viewPath,proto3" json:"viewPath,omitempty"`
	// contains filtered or unexported fields
}

CanvasNode is a node on the canvas.

func (*CanvasNode) CloneMessageVT

func (m *CanvasNode) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*CanvasNode) CloneVT

func (m *CanvasNode) CloneVT() *CanvasNode

func (*CanvasNode) EqualMessageVT

func (this *CanvasNode) EqualMessageVT(thatMsg any) bool

func (*CanvasNode) EqualVT

func (this *CanvasNode) EqualVT(that *CanvasNode) bool

func (*CanvasNode) GetHeight

func (x *CanvasNode) GetHeight() float64

func (*CanvasNode) GetId

func (x *CanvasNode) GetId() string

func (*CanvasNode) GetObjectKey

func (x *CanvasNode) GetObjectKey() string

func (*CanvasNode) GetPinned

func (x *CanvasNode) GetPinned() bool

func (*CanvasNode) GetShapeData

func (x *CanvasNode) GetShapeData() []byte

func (*CanvasNode) GetTextContent

func (x *CanvasNode) GetTextContent() string

func (*CanvasNode) GetType

func (x *CanvasNode) GetType() NodeType

func (*CanvasNode) GetViewPath

func (x *CanvasNode) GetViewPath() string

func (*CanvasNode) GetWidth

func (x *CanvasNode) GetWidth() float64

func (*CanvasNode) GetX

func (x *CanvasNode) GetX() float64

func (*CanvasNode) GetY

func (x *CanvasNode) GetY() float64

func (*CanvasNode) GetZIndex

func (x *CanvasNode) GetZIndex() int32

func (*CanvasNode) MarshalBlock added in v0.57.2

func (n *CanvasNode) MarshalBlock() ([]byte, error)

MarshalBlock marshals the Canvas node to binary.

func (*CanvasNode) MarshalJSON

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

MarshalJSON marshals the CanvasNode to JSON.

func (*CanvasNode) MarshalProtoJSON

func (x *CanvasNode) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CanvasNode message to JSON.

func (*CanvasNode) MarshalProtoText

func (x *CanvasNode) MarshalProtoText() string

func (*CanvasNode) MarshalToSizedBufferVT

func (m *CanvasNode) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CanvasNode) MarshalToVT

func (m *CanvasNode) MarshalToVT(dAtA []byte) (int, error)

func (*CanvasNode) MarshalVT

func (m *CanvasNode) MarshalVT() (dAtA []byte, err error)

func (*CanvasNode) ProtoMessage

func (*CanvasNode) ProtoMessage()

func (*CanvasNode) Reset

func (x *CanvasNode) Reset()

func (*CanvasNode) SizeVT

func (m *CanvasNode) SizeVT() (n int)

func (*CanvasNode) String

func (x *CanvasNode) String() string

func (*CanvasNode) UnmarshalBlock added in v0.57.2

func (n *CanvasNode) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the Canvas node from binary.

func (*CanvasNode) UnmarshalJSON

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

UnmarshalJSON unmarshals the CanvasNode from JSON.

func (*CanvasNode) UnmarshalProtoJSON

func (x *CanvasNode) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CanvasNode message from JSON.

func (*CanvasNode) UnmarshalVT

func (m *CanvasNode) UnmarshalVT(dAtA []byte) error

type CanvasResource

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

CanvasResource implements the CanvasResourceService SRPC interface.

func NewCanvasResource

func NewCanvasResource(ws world.WorldState, engine world.Engine, objKey string, state *CanvasState) *CanvasResource

NewCanvasResource creates a new CanvasResource.

func (*CanvasResource) Close added in v0.51.8

func (r *CanvasResource) Close()

Close releases the canvas resource lifecycle.

func (*CanvasResource) GetCanvasState

GetCanvasState returns the current canvas state.

func (*CanvasResource) GetMux

func (r *CanvasResource) GetMux() srpc.Mux

GetMux returns the srpc mux for this resource.

func (*CanvasResource) UpdateCanvas

UpdateCanvas applies a batch update to the canvas.

func (*CanvasResource) WatchCanvasState

WatchCanvasState streams canvas state changes.

type CanvasState

type CanvasState struct {

	// Nodes is the set of canvas nodes keyed by ID.
	Nodes map[string]*CanvasNode `` /* 151-byte string literal not displayed */
	// Edges is the list of user-drawn edges.
	Edges []*CanvasEdge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"`
	// StrokeTreeRef is the block ref to the freeform stroke tree.
	StrokeTreeRef []byte `protobuf:"bytes,3,opt,name=stroke_tree_ref,json=strokeTreeRef,proto3" json:"strokeTreeRef,omitempty"`
	// HiddenGraphLinks is the set of canvas-scoped hidden world graph links.
	HiddenGraphLinks []*HiddenGraphLink `protobuf:"bytes,4,rep,name=hidden_graph_links,json=hiddenGraphLinks,proto3" json:"hiddenGraphLinks,omitempty"`
	// LayoutMetadata is projection layout metadata keyed by canvas node ID.
	LayoutMetadata map[string]*CanvasLayoutMetadata `` /* 190-byte string literal not displayed */
	// contains filtered or unexported fields
}

CanvasState is the complete logical Canvas state exposed through the resource API.

func LookupCanvasState added in v0.57.2

func LookupCanvasState(ctx context.Context, ws world.WorldState, objKey string) (*CanvasState, error)

LookupCanvasState loads one logical Canvas state from a World object.

func UnmarshalCanvasState

func UnmarshalCanvasState(ctx context.Context, bcs *block.Cursor) (*CanvasState, error)

UnmarshalCanvasState reads the Canvas DAG and returns the logical RPC state.

func (*CanvasState) Clone

func (s *CanvasState) Clone() *CanvasState

Clone clones the canvas state.

func (*CanvasState) CloneMessageVT

func (m *CanvasState) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*CanvasState) CloneVT

func (m *CanvasState) CloneVT() *CanvasState

func (*CanvasState) EqualMessageVT

func (this *CanvasState) EqualMessageVT(thatMsg any) bool

func (*CanvasState) EqualVT

func (this *CanvasState) EqualVT(that *CanvasState) bool

func (*CanvasState) GetEdges

func (x *CanvasState) GetEdges() []*CanvasEdge
func (x *CanvasState) GetHiddenGraphLinks() []*HiddenGraphLink

func (*CanvasState) GetLayoutMetadata added in v0.51.8

func (x *CanvasState) GetLayoutMetadata() map[string]*CanvasLayoutMetadata

func (*CanvasState) GetNodes

func (x *CanvasState) GetNodes() map[string]*CanvasNode

func (*CanvasState) GetStrokeTreeRef

func (x *CanvasState) GetStrokeTreeRef() []byte

func (*CanvasState) MarshalBlock

func (s *CanvasState) MarshalBlock() ([]byte, error)

MarshalBlock marshals the logical Canvas migration payload to binary.

func (*CanvasState) MarshalJSON

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

MarshalJSON marshals the CanvasState to JSON.

func (*CanvasState) MarshalProtoJSON

func (x *CanvasState) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CanvasState message to JSON.

func (*CanvasState) MarshalProtoText

func (x *CanvasState) MarshalProtoText() string

func (*CanvasState) MarshalToSizedBufferVT

func (m *CanvasState) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CanvasState) MarshalToVT

func (m *CanvasState) MarshalToVT(dAtA []byte) (int, error)

func (*CanvasState) MarshalVT

func (m *CanvasState) MarshalVT() (dAtA []byte, err error)

func (*CanvasState) ProtoMessage

func (*CanvasState) ProtoMessage()

func (*CanvasState) Reset

func (x *CanvasState) Reset()

func (*CanvasState) SizeVT

func (m *CanvasState) SizeVT() (n int)

func (*CanvasState) String

func (x *CanvasState) String() string

func (*CanvasState) UnmarshalJSON

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

UnmarshalJSON unmarshals the CanvasState from JSON.

func (*CanvasState) UnmarshalProtoJSON

func (x *CanvasState) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CanvasState message from JSON.

func (*CanvasState) UnmarshalVT

func (m *CanvasState) UnmarshalVT(dAtA []byte) error

type CanvasState_LayoutMetadataEntry added in v0.51.8

type CanvasState_LayoutMetadataEntry struct {
	Key   string                `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *CanvasLayoutMetadata `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*CanvasState_LayoutMetadataEntry) GetKey added in v0.51.8

func (*CanvasState_LayoutMetadataEntry) GetValue added in v0.51.8

func (*CanvasState_LayoutMetadataEntry) MarshalJSON added in v0.51.8

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

MarshalJSON marshals the CanvasState_LayoutMetadataEntry to JSON.

func (*CanvasState_LayoutMetadataEntry) MarshalProtoJSON added in v0.51.8

func (x *CanvasState_LayoutMetadataEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CanvasState_LayoutMetadataEntry message to JSON.

func (*CanvasState_LayoutMetadataEntry) MarshalProtoText added in v0.51.8

func (x *CanvasState_LayoutMetadataEntry) MarshalProtoText() string

func (*CanvasState_LayoutMetadataEntry) ProtoMessage added in v0.51.8

func (*CanvasState_LayoutMetadataEntry) ProtoMessage()

func (*CanvasState_LayoutMetadataEntry) Reset added in v0.51.8

func (*CanvasState_LayoutMetadataEntry) String added in v0.51.8

func (*CanvasState_LayoutMetadataEntry) UnmarshalJSON added in v0.51.8

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

UnmarshalJSON unmarshals the CanvasState_LayoutMetadataEntry from JSON.

func (*CanvasState_LayoutMetadataEntry) UnmarshalProtoJSON added in v0.51.8

func (x *CanvasState_LayoutMetadataEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CanvasState_LayoutMetadataEntry message from JSON.

type CanvasState_NodesEntry

type CanvasState_NodesEntry struct {
	Key   string      `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *CanvasNode `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*CanvasState_NodesEntry) GetKey

func (x *CanvasState_NodesEntry) GetKey() string

func (*CanvasState_NodesEntry) GetValue

func (x *CanvasState_NodesEntry) GetValue() *CanvasNode

func (*CanvasState_NodesEntry) MarshalJSON

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

MarshalJSON marshals the CanvasState_NodesEntry to JSON.

func (*CanvasState_NodesEntry) MarshalProtoJSON

func (x *CanvasState_NodesEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CanvasState_NodesEntry message to JSON.

func (*CanvasState_NodesEntry) MarshalProtoText

func (x *CanvasState_NodesEntry) MarshalProtoText() string

func (*CanvasState_NodesEntry) ProtoMessage

func (*CanvasState_NodesEntry) ProtoMessage()

func (*CanvasState_NodesEntry) Reset

func (x *CanvasState_NodesEntry) Reset()

func (*CanvasState_NodesEntry) String

func (x *CanvasState_NodesEntry) String() string

func (*CanvasState_NodesEntry) UnmarshalJSON

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

UnmarshalJSON unmarshals the CanvasState_NodesEntry from JSON.

func (*CanvasState_NodesEntry) UnmarshalProtoJSON

func (x *CanvasState_NodesEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CanvasState_NodesEntry message from JSON.

type CanvasStorage added in v0.57.2

type CanvasStorage struct {

	// Nodes stores Canvas nodes. Key: UTF-8 node ID. Value: block.BlockRef to CanvasNode.
	Nodes *block.KeyValueStore `protobuf:"bytes,1,opt,name=nodes,proto3" json:"nodes,omitempty"`
	// Edges contains user-drawn visual edges.
	Edges []*CanvasEdge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"`
	// StrokeTreeRef identifies the freeform stroke tree.
	StrokeTreeRef []byte `protobuf:"bytes,3,opt,name=stroke_tree_ref,json=strokeTreeRef,proto3" json:"strokeTreeRef,omitempty"`
	// HiddenGraphLinks contains canvas-scoped hidden world graph links.
	HiddenGraphLinks []*HiddenGraphLink `protobuf:"bytes,4,rep,name=hidden_graph_links,json=hiddenGraphLinks,proto3" json:"hiddenGraphLinks,omitempty"`
	// LayoutMetadata contains projection layout metadata keyed by canvas node ID.
	LayoutMetadata map[string]*CanvasLayoutMetadata `` /* 190-byte string literal not displayed */
	// contains filtered or unexported fields
}

CanvasStorage is the root block of a Canvas state DAG.

func NewCanvasStorage added in v0.57.2

func NewCanvasStorage() *CanvasStorage

NewCanvasStorage constructs an empty Canvas storage DAG.

func UnmarshalCanvasStorage added in v0.57.2

func UnmarshalCanvasStorage(ctx context.Context, bcs *block.Cursor) (*CanvasStorage, error)

UnmarshalCanvasStorage unmarshals a Canvas storage root from a cursor.

func (*CanvasStorage) ApplySubBlock added in v0.57.2

func (s *CanvasStorage) ApplySubBlock(id uint32, next block.SubBlock) error

ApplySubBlock applies a Canvas storage sub-block change.

func (*CanvasStorage) CloneMessageVT added in v0.57.2

func (m *CanvasStorage) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*CanvasStorage) CloneVT added in v0.57.2

func (m *CanvasStorage) CloneVT() *CanvasStorage

func (*CanvasStorage) DecodedBlockCacheTypeKey added in v0.57.2

func (s *CanvasStorage) DecodedBlockCacheTypeKey() string

DecodedBlockCacheTypeKey returns the decoded-block cache type key.

func (*CanvasStorage) EqualMessageVT added in v0.57.2

func (this *CanvasStorage) EqualMessageVT(thatMsg any) bool

func (*CanvasStorage) EqualVT added in v0.57.2

func (this *CanvasStorage) EqualVT(that *CanvasStorage) bool

func (*CanvasStorage) GetEdges added in v0.57.2

func (x *CanvasStorage) GetEdges() []*CanvasEdge
func (x *CanvasStorage) GetHiddenGraphLinks() []*HiddenGraphLink

func (*CanvasStorage) GetLayoutMetadata added in v0.57.2

func (x *CanvasStorage) GetLayoutMetadata() map[string]*CanvasLayoutMetadata

func (*CanvasStorage) GetNodes added in v0.57.2

func (x *CanvasStorage) GetNodes() *block.KeyValueStore

func (*CanvasStorage) GetStrokeTreeRef added in v0.57.2

func (x *CanvasStorage) GetStrokeTreeRef() []byte

func (*CanvasStorage) GetSubBlockCtor added in v0.57.2

func (s *CanvasStorage) GetSubBlockCtor(id uint32) block.SubBlockCtor

GetSubBlockCtor returns the constructor for a Canvas storage sub-block.

func (*CanvasStorage) GetSubBlocks added in v0.57.2

func (s *CanvasStorage) GetSubBlocks() map[uint32]block.SubBlock

GetSubBlocks returns the Canvas storage sub-blocks by field ID.

func (*CanvasStorage) MarshalBlock added in v0.57.2

func (s *CanvasStorage) MarshalBlock() ([]byte, error)

MarshalBlock marshals the storage root to binary.

func (*CanvasStorage) MarshalJSON added in v0.57.2

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

MarshalJSON marshals the CanvasStorage to JSON.

func (*CanvasStorage) MarshalProtoJSON added in v0.57.2

func (x *CanvasStorage) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CanvasStorage message to JSON.

func (*CanvasStorage) MarshalProtoText added in v0.57.2

func (x *CanvasStorage) MarshalProtoText() string

func (*CanvasStorage) MarshalToSizedBufferVT added in v0.57.2

func (m *CanvasStorage) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CanvasStorage) MarshalToVT added in v0.57.2

func (m *CanvasStorage) MarshalToVT(dAtA []byte) (int, error)

func (*CanvasStorage) MarshalVT added in v0.57.2

func (m *CanvasStorage) MarshalVT() (dAtA []byte, err error)

func (*CanvasStorage) ProtoMessage added in v0.57.2

func (*CanvasStorage) ProtoMessage()

func (*CanvasStorage) Reset added in v0.57.2

func (x *CanvasStorage) Reset()

func (*CanvasStorage) SizeVT added in v0.57.2

func (m *CanvasStorage) SizeVT() (n int)

func (*CanvasStorage) String added in v0.57.2

func (x *CanvasStorage) String() string

func (*CanvasStorage) UnmarshalBlock added in v0.57.2

func (s *CanvasStorage) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the storage root from binary.

func (*CanvasStorage) UnmarshalJSON added in v0.57.2

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

UnmarshalJSON unmarshals the CanvasStorage from JSON.

func (*CanvasStorage) UnmarshalProtoJSON added in v0.57.2

func (x *CanvasStorage) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CanvasStorage message from JSON.

func (*CanvasStorage) UnmarshalVT added in v0.57.2

func (m *CanvasStorage) UnmarshalVT(dAtA []byte) error

func (*CanvasStorage) Validate added in v0.57.2

func (s *CanvasStorage) Validate() error

Validate checks the Canvas node index.

type CanvasStorage_LayoutMetadataEntry added in v0.57.2

type CanvasStorage_LayoutMetadataEntry struct {
	Key   string                `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *CanvasLayoutMetadata `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*CanvasStorage_LayoutMetadataEntry) GetKey added in v0.57.2

func (*CanvasStorage_LayoutMetadataEntry) GetValue added in v0.57.2

func (*CanvasStorage_LayoutMetadataEntry) MarshalJSON added in v0.57.2

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

MarshalJSON marshals the CanvasStorage_LayoutMetadataEntry to JSON.

func (*CanvasStorage_LayoutMetadataEntry) MarshalProtoJSON added in v0.57.2

func (x *CanvasStorage_LayoutMetadataEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CanvasStorage_LayoutMetadataEntry message to JSON.

func (*CanvasStorage_LayoutMetadataEntry) MarshalProtoText added in v0.57.2

func (x *CanvasStorage_LayoutMetadataEntry) MarshalProtoText() string

func (*CanvasStorage_LayoutMetadataEntry) ProtoMessage added in v0.57.2

func (*CanvasStorage_LayoutMetadataEntry) ProtoMessage()

func (*CanvasStorage_LayoutMetadataEntry) Reset added in v0.57.2

func (*CanvasStorage_LayoutMetadataEntry) String added in v0.57.2

func (*CanvasStorage_LayoutMetadataEntry) UnmarshalJSON added in v0.57.2

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

UnmarshalJSON unmarshals the CanvasStorage_LayoutMetadataEntry from JSON.

func (*CanvasStorage_LayoutMetadataEntry) UnmarshalProtoJSON added in v0.57.2

func (x *CanvasStorage_LayoutMetadataEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CanvasStorage_LayoutMetadataEntry message from JSON.

type EdgeStyle

type EdgeStyle int32

EdgeStyle is the visual style of a canvas edge.

const (
	// EDGE_STYLE_BEZIER is the default bezier curve style.
	EdgeStyle_EDGE_STYLE_BEZIER EdgeStyle = 0
	// EDGE_STYLE_STRAIGHT is a straight line.
	EdgeStyle_EDGE_STYLE_STRAIGHT EdgeStyle = 1
)

func (EdgeStyle) Enum

func (x EdgeStyle) Enum() *EdgeStyle

func (EdgeStyle) MarshalJSON

func (x EdgeStyle) MarshalJSON() ([]byte, error)

MarshalJSON marshals the EdgeStyle to JSON.

func (EdgeStyle) MarshalProtoJSON

func (x EdgeStyle) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the EdgeStyle to JSON.

func (EdgeStyle) MarshalProtoText

func (x EdgeStyle) MarshalProtoText() string

func (EdgeStyle) MarshalText

func (x EdgeStyle) MarshalText() ([]byte, error)

MarshalText marshals the EdgeStyle to text.

func (EdgeStyle) String

func (x EdgeStyle) String() string

func (*EdgeStyle) UnmarshalJSON

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

UnmarshalJSON unmarshals the EdgeStyle from JSON.

func (*EdgeStyle) UnmarshalProtoJSON

func (x *EdgeStyle) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the EdgeStyle from JSON.

func (*EdgeStyle) UnmarshalText

func (x *EdgeStyle) UnmarshalText(b []byte) error

UnmarshalText unmarshals the EdgeStyle from text.

type GetCanvasStateRequest

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

GetCanvasStateRequest is the request for GetCanvasState.

func (*GetCanvasStateRequest) CloneMessageVT

func (*GetCanvasStateRequest) CloneVT

func (*GetCanvasStateRequest) EqualMessageVT

func (this *GetCanvasStateRequest) EqualMessageVT(thatMsg any) bool

func (*GetCanvasStateRequest) EqualVT

func (this *GetCanvasStateRequest) EqualVT(that *GetCanvasStateRequest) bool

func (*GetCanvasStateRequest) MarshalJSON

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

MarshalJSON marshals the GetCanvasStateRequest to JSON.

func (*GetCanvasStateRequest) MarshalProtoJSON

func (x *GetCanvasStateRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the GetCanvasStateRequest message to JSON.

func (*GetCanvasStateRequest) MarshalProtoText

func (x *GetCanvasStateRequest) MarshalProtoText() string

func (*GetCanvasStateRequest) MarshalToSizedBufferVT

func (m *GetCanvasStateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetCanvasStateRequest) MarshalToVT

func (m *GetCanvasStateRequest) MarshalToVT(dAtA []byte) (int, error)

func (*GetCanvasStateRequest) MarshalVT

func (m *GetCanvasStateRequest) MarshalVT() (dAtA []byte, err error)

func (*GetCanvasStateRequest) ProtoMessage

func (*GetCanvasStateRequest) ProtoMessage()

func (*GetCanvasStateRequest) Reset

func (x *GetCanvasStateRequest) Reset()

func (*GetCanvasStateRequest) SizeVT

func (m *GetCanvasStateRequest) SizeVT() (n int)

func (*GetCanvasStateRequest) String

func (x *GetCanvasStateRequest) String() string

func (*GetCanvasStateRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the GetCanvasStateRequest from JSON.

func (*GetCanvasStateRequest) UnmarshalProtoJSON

func (x *GetCanvasStateRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the GetCanvasStateRequest message from JSON.

func (*GetCanvasStateRequest) UnmarshalVT

func (m *GetCanvasStateRequest) UnmarshalVT(dAtA []byte) error

type GetCanvasStateResponse

type GetCanvasStateResponse struct {

	// State is the current canvas state.
	State *CanvasState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

GetCanvasStateResponse is the response for GetCanvasState.

func (*GetCanvasStateResponse) CloneMessageVT

func (*GetCanvasStateResponse) CloneVT

func (*GetCanvasStateResponse) EqualMessageVT

func (this *GetCanvasStateResponse) EqualMessageVT(thatMsg any) bool

func (*GetCanvasStateResponse) EqualVT

func (this *GetCanvasStateResponse) EqualVT(that *GetCanvasStateResponse) bool

func (*GetCanvasStateResponse) GetState

func (x *GetCanvasStateResponse) GetState() *CanvasState

func (*GetCanvasStateResponse) MarshalJSON

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

MarshalJSON marshals the GetCanvasStateResponse to JSON.

func (*GetCanvasStateResponse) MarshalProtoJSON

func (x *GetCanvasStateResponse) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the GetCanvasStateResponse message to JSON.

func (*GetCanvasStateResponse) MarshalProtoText

func (x *GetCanvasStateResponse) MarshalProtoText() string

func (*GetCanvasStateResponse) MarshalToSizedBufferVT

func (m *GetCanvasStateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetCanvasStateResponse) MarshalToVT

func (m *GetCanvasStateResponse) MarshalToVT(dAtA []byte) (int, error)

func (*GetCanvasStateResponse) MarshalVT

func (m *GetCanvasStateResponse) MarshalVT() (dAtA []byte, err error)

func (*GetCanvasStateResponse) ProtoMessage

func (*GetCanvasStateResponse) ProtoMessage()

func (*GetCanvasStateResponse) Reset

func (x *GetCanvasStateResponse) Reset()

func (*GetCanvasStateResponse) SizeVT

func (m *GetCanvasStateResponse) SizeVT() (n int)

func (*GetCanvasStateResponse) String

func (x *GetCanvasStateResponse) String() string

func (*GetCanvasStateResponse) UnmarshalJSON

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

UnmarshalJSON unmarshals the GetCanvasStateResponse from JSON.

func (*GetCanvasStateResponse) UnmarshalProtoJSON

func (x *GetCanvasStateResponse) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the GetCanvasStateResponse message from JSON.

func (*GetCanvasStateResponse) UnmarshalVT

func (m *GetCanvasStateResponse) UnmarshalVT(dAtA []byte) error
type HiddenGraphLink struct {

	// Subject is the graph link subject IRI.
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// Predicate is the graph link predicate IRI.
	Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// Object is the graph link object IRI.
	Object string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	// Label is the optional graph link label.
	Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

HiddenGraphLink is a canvas-scoped hidden world graph link identity.

func (*HiddenGraphLink) CloneMessageVT

func (m *HiddenGraphLink) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*HiddenGraphLink) CloneVT

func (m *HiddenGraphLink) CloneVT() *HiddenGraphLink

func (*HiddenGraphLink) EqualMessageVT

func (this *HiddenGraphLink) EqualMessageVT(thatMsg any) bool

func (*HiddenGraphLink) EqualVT

func (this *HiddenGraphLink) EqualVT(that *HiddenGraphLink) bool

func (*HiddenGraphLink) GetLabel

func (x *HiddenGraphLink) GetLabel() string

func (*HiddenGraphLink) GetObject

func (x *HiddenGraphLink) GetObject() string

func (*HiddenGraphLink) GetPredicate

func (x *HiddenGraphLink) GetPredicate() string

func (*HiddenGraphLink) GetSubject

func (x *HiddenGraphLink) GetSubject() string

func (*HiddenGraphLink) MarshalJSON

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

MarshalJSON marshals the HiddenGraphLink to JSON.

func (*HiddenGraphLink) MarshalProtoJSON

func (x *HiddenGraphLink) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the HiddenGraphLink message to JSON.

func (*HiddenGraphLink) MarshalProtoText

func (x *HiddenGraphLink) MarshalProtoText() string

func (*HiddenGraphLink) MarshalToSizedBufferVT

func (m *HiddenGraphLink) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*HiddenGraphLink) MarshalToVT

func (m *HiddenGraphLink) MarshalToVT(dAtA []byte) (int, error)

func (*HiddenGraphLink) MarshalVT

func (m *HiddenGraphLink) MarshalVT() (dAtA []byte, err error)

func (*HiddenGraphLink) ProtoMessage

func (*HiddenGraphLink) ProtoMessage()

func (*HiddenGraphLink) Reset

func (x *HiddenGraphLink) Reset()

func (*HiddenGraphLink) SizeVT

func (m *HiddenGraphLink) SizeVT() (n int)

func (*HiddenGraphLink) String

func (x *HiddenGraphLink) String() string

func (*HiddenGraphLink) UnmarshalJSON

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

UnmarshalJSON unmarshals the HiddenGraphLink from JSON.

func (*HiddenGraphLink) UnmarshalProtoJSON

func (x *HiddenGraphLink) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the HiddenGraphLink message from JSON.

func (*HiddenGraphLink) UnmarshalVT

func (m *HiddenGraphLink) UnmarshalVT(dAtA []byte) error

type NodeType

type NodeType int32

NodeType is the type of a canvas node.

const (
	// NODE_TYPE_UNKNOWN is unknown.
	NodeType_NODE_TYPE_UNKNOWN NodeType = 0
	// NODE_TYPE_TEXT is a markdown text node.
	NodeType_NODE_TYPE_TEXT NodeType = 1
	// NODE_TYPE_SHAPE is a shape node.
	NodeType_NODE_TYPE_SHAPE NodeType = 2
	// NODE_TYPE_WORLD_OBJECT is an embedded world object node.
	NodeType_NODE_TYPE_WORLD_OBJECT NodeType = 3
	// NODE_TYPE_DRAWING is a freeform drawing node.
	NodeType_NODE_TYPE_DRAWING NodeType = 4
)

func (NodeType) Enum

func (x NodeType) Enum() *NodeType

func (NodeType) MarshalJSON

func (x NodeType) MarshalJSON() ([]byte, error)

MarshalJSON marshals the NodeType to JSON.

func (NodeType) MarshalProtoJSON

func (x NodeType) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the NodeType to JSON.

func (NodeType) MarshalProtoText

func (x NodeType) MarshalProtoText() string

func (NodeType) MarshalText

func (x NodeType) MarshalText() ([]byte, error)

MarshalText marshals the NodeType to text.

func (NodeType) String

func (x NodeType) String() string

func (*NodeType) UnmarshalJSON

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

UnmarshalJSON unmarshals the NodeType from JSON.

func (*NodeType) UnmarshalProtoJSON

func (x *NodeType) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the NodeType from JSON.

func (*NodeType) UnmarshalText

func (x *NodeType) UnmarshalText(b []byte) error

UnmarshalText unmarshals the NodeType from text.

type SRPCCanvasResourceServiceClient

type SRPCCanvasResourceServiceClient interface {
	// SRPCClient returns the underlying SRPC client.
	SRPCClient() srpc.Client

	GetCanvasState(ctx context.Context, in *GetCanvasStateRequest) (*GetCanvasStateResponse, error)

	UpdateCanvas(ctx context.Context, in *UpdateCanvasRequest) (*UpdateCanvasResponse, error)

	WatchCanvasState(ctx context.Context, in *WatchCanvasStateRequest) (SRPCCanvasResourceService_WatchCanvasStateClient, error)
}

func NewSRPCCanvasResourceServiceClient

func NewSRPCCanvasResourceServiceClient(cc srpc.Client) SRPCCanvasResourceServiceClient

func NewSRPCCanvasResourceServiceClientWithServiceID

func NewSRPCCanvasResourceServiceClientWithServiceID(cc srpc.Client, serviceID string) SRPCCanvasResourceServiceClient

type SRPCCanvasResourceServiceHandler

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

func (SRPCCanvasResourceServiceHandler) GetMethodIDs

func (SRPCCanvasResourceServiceHandler) GetMethodIDs() []string

func (*SRPCCanvasResourceServiceHandler) GetServiceID

func (d *SRPCCanvasResourceServiceHandler) GetServiceID() string

func (*SRPCCanvasResourceServiceHandler) InvokeMethod

func (d *SRPCCanvasResourceServiceHandler) InvokeMethod(
	serviceID, methodID string,
	strm srpc.Stream,
) (bool, error)

func (SRPCCanvasResourceServiceHandler) InvokeMethod_GetCanvasState

func (SRPCCanvasResourceServiceHandler) InvokeMethod_GetCanvasState(impl SRPCCanvasResourceServiceServer, strm srpc.Stream) error

func (SRPCCanvasResourceServiceHandler) InvokeMethod_UpdateCanvas

func (SRPCCanvasResourceServiceHandler) InvokeMethod_WatchCanvasState

func (SRPCCanvasResourceServiceHandler) InvokeMethod_WatchCanvasState(impl SRPCCanvasResourceServiceServer, strm srpc.Stream) error

type SRPCCanvasResourceService_GetCanvasStateStream

type SRPCCanvasResourceService_GetCanvasStateStream interface {
	srpc.Stream
}

type SRPCCanvasResourceService_UpdateCanvasStream

type SRPCCanvasResourceService_UpdateCanvasStream interface {
	srpc.Stream
}

type SRPCCanvasResourceService_WatchCanvasStateClient

type SRPCCanvasResourceService_WatchCanvasStateClient interface {
	srpc.Stream
	Recv() (*WatchCanvasStateResponse, error)
	RecvTo(*WatchCanvasStateResponse) error
}

type SRPCCanvasResourceService_WatchCanvasStateStream

type SRPCCanvasResourceService_WatchCanvasStateStream interface {
	srpc.Stream
	Send(*WatchCanvasStateResponse) error
	SendAndClose(*WatchCanvasStateResponse) error
}

type UpdateCanvasRequest

type UpdateCanvasRequest struct {

	// SetNodes contains nodes to add or update (keyed by ID).
	SetNodes map[string]*CanvasNode `` /* 172-byte string literal not displayed */
	// RemoveNodeIds contains node IDs to remove.
	RemoveNodeIds []string `protobuf:"bytes,2,rep,name=remove_node_ids,json=removeNodeIds,proto3" json:"removeNodeIds,omitempty"`
	// AddEdges contains edges to add.
	AddEdges []*CanvasEdge `protobuf:"bytes,3,rep,name=add_edges,json=addEdges,proto3" json:"addEdges,omitempty"`
	// RemoveEdgeIds contains edge IDs to remove.
	RemoveEdgeIds []string `protobuf:"bytes,4,rep,name=remove_edge_ids,json=removeEdgeIds,proto3" json:"removeEdgeIds,omitempty"`
	// AddHiddenGraphLinks contains graph links to hide.
	AddHiddenGraphLinks []*HiddenGraphLink `protobuf:"bytes,5,rep,name=add_hidden_graph_links,json=addHiddenGraphLinks,proto3" json:"addHiddenGraphLinks,omitempty"`
	// RemoveHiddenGraphLinks contains graph links to show again.
	RemoveHiddenGraphLinks []*HiddenGraphLink `` /* 128-byte string literal not displayed */
	// SetLayoutMetadata contains layout metadata to add or update by node ID.
	SetLayoutMetadata map[string]*CanvasLayoutMetadata `` /* 200-byte string literal not displayed */
	// RemoveLayoutMetadataNodeIds contains node IDs whose layout metadata is removed.
	RemoveLayoutMetadataNodeIds []string `` /* 144-byte string literal not displayed */
	// contains filtered or unexported fields
}

UpdateCanvasRequest applies mutations to the canvas.

func (*UpdateCanvasRequest) CloneMessageVT

func (*UpdateCanvasRequest) CloneVT

func (*UpdateCanvasRequest) EqualMessageVT

func (this *UpdateCanvasRequest) EqualMessageVT(thatMsg any) bool

func (*UpdateCanvasRequest) EqualVT

func (this *UpdateCanvasRequest) EqualVT(that *UpdateCanvasRequest) bool

func (*UpdateCanvasRequest) GetAddEdges

func (x *UpdateCanvasRequest) GetAddEdges() []*CanvasEdge
func (x *UpdateCanvasRequest) GetAddHiddenGraphLinks() []*HiddenGraphLink

func (*UpdateCanvasRequest) GetRemoveEdgeIds

func (x *UpdateCanvasRequest) GetRemoveEdgeIds() []string
func (x *UpdateCanvasRequest) GetRemoveHiddenGraphLinks() []*HiddenGraphLink

func (*UpdateCanvasRequest) GetRemoveLayoutMetadataNodeIds added in v0.51.8

func (x *UpdateCanvasRequest) GetRemoveLayoutMetadataNodeIds() []string

func (*UpdateCanvasRequest) GetRemoveNodeIds

func (x *UpdateCanvasRequest) GetRemoveNodeIds() []string

func (*UpdateCanvasRequest) GetSetLayoutMetadata added in v0.51.8

func (x *UpdateCanvasRequest) GetSetLayoutMetadata() map[string]*CanvasLayoutMetadata

func (*UpdateCanvasRequest) GetSetNodes

func (x *UpdateCanvasRequest) GetSetNodes() map[string]*CanvasNode

func (*UpdateCanvasRequest) MarshalJSON

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

MarshalJSON marshals the UpdateCanvasRequest to JSON.

func (*UpdateCanvasRequest) MarshalProtoJSON

func (x *UpdateCanvasRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the UpdateCanvasRequest message to JSON.

func (*UpdateCanvasRequest) MarshalProtoText

func (x *UpdateCanvasRequest) MarshalProtoText() string

func (*UpdateCanvasRequest) MarshalToSizedBufferVT

func (m *UpdateCanvasRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UpdateCanvasRequest) MarshalToVT

func (m *UpdateCanvasRequest) MarshalToVT(dAtA []byte) (int, error)

func (*UpdateCanvasRequest) MarshalVT

func (m *UpdateCanvasRequest) MarshalVT() (dAtA []byte, err error)

func (*UpdateCanvasRequest) ProtoMessage

func (*UpdateCanvasRequest) ProtoMessage()

func (*UpdateCanvasRequest) Reset

func (x *UpdateCanvasRequest) Reset()

func (*UpdateCanvasRequest) SizeVT

func (m *UpdateCanvasRequest) SizeVT() (n int)

func (*UpdateCanvasRequest) String

func (x *UpdateCanvasRequest) String() string

func (*UpdateCanvasRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the UpdateCanvasRequest from JSON.

func (*UpdateCanvasRequest) UnmarshalProtoJSON

func (x *UpdateCanvasRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the UpdateCanvasRequest message from JSON.

func (*UpdateCanvasRequest) UnmarshalVT

func (m *UpdateCanvasRequest) UnmarshalVT(dAtA []byte) error

type UpdateCanvasRequest_SetLayoutMetadataEntry added in v0.51.8

type UpdateCanvasRequest_SetLayoutMetadataEntry struct {
	Key   string                `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *CanvasLayoutMetadata `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCanvasRequest_SetLayoutMetadataEntry) GetKey added in v0.51.8

func (*UpdateCanvasRequest_SetLayoutMetadataEntry) GetValue added in v0.51.8

func (*UpdateCanvasRequest_SetLayoutMetadataEntry) MarshalJSON added in v0.51.8

MarshalJSON marshals the UpdateCanvasRequest_SetLayoutMetadataEntry to JSON.

func (*UpdateCanvasRequest_SetLayoutMetadataEntry) MarshalProtoJSON added in v0.51.8

MarshalProtoJSON marshals the UpdateCanvasRequest_SetLayoutMetadataEntry message to JSON.

func (*UpdateCanvasRequest_SetLayoutMetadataEntry) MarshalProtoText added in v0.51.8

func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) MarshalProtoText() string

func (*UpdateCanvasRequest_SetLayoutMetadataEntry) ProtoMessage added in v0.51.8

func (*UpdateCanvasRequest_SetLayoutMetadataEntry) Reset added in v0.51.8

func (*UpdateCanvasRequest_SetLayoutMetadataEntry) String added in v0.51.8

func (*UpdateCanvasRequest_SetLayoutMetadataEntry) UnmarshalJSON added in v0.51.8

UnmarshalJSON unmarshals the UpdateCanvasRequest_SetLayoutMetadataEntry from JSON.

func (*UpdateCanvasRequest_SetLayoutMetadataEntry) UnmarshalProtoJSON added in v0.51.8

UnmarshalProtoJSON unmarshals the UpdateCanvasRequest_SetLayoutMetadataEntry message from JSON.

type UpdateCanvasRequest_SetNodesEntry

type UpdateCanvasRequest_SetNodesEntry struct {
	Key   string      `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *CanvasNode `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCanvasRequest_SetNodesEntry) GetKey

func (*UpdateCanvasRequest_SetNodesEntry) GetValue

func (*UpdateCanvasRequest_SetNodesEntry) MarshalJSON

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

MarshalJSON marshals the UpdateCanvasRequest_SetNodesEntry to JSON.

func (*UpdateCanvasRequest_SetNodesEntry) MarshalProtoJSON

func (x *UpdateCanvasRequest_SetNodesEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the UpdateCanvasRequest_SetNodesEntry message to JSON.

func (*UpdateCanvasRequest_SetNodesEntry) MarshalProtoText

func (x *UpdateCanvasRequest_SetNodesEntry) MarshalProtoText() string

func (*UpdateCanvasRequest_SetNodesEntry) ProtoMessage

func (*UpdateCanvasRequest_SetNodesEntry) ProtoMessage()

func (*UpdateCanvasRequest_SetNodesEntry) Reset

func (*UpdateCanvasRequest_SetNodesEntry) String

func (*UpdateCanvasRequest_SetNodesEntry) UnmarshalJSON

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

UnmarshalJSON unmarshals the UpdateCanvasRequest_SetNodesEntry from JSON.

func (*UpdateCanvasRequest_SetNodesEntry) UnmarshalProtoJSON

func (x *UpdateCanvasRequest_SetNodesEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the UpdateCanvasRequest_SetNodesEntry message from JSON.

type UpdateCanvasResponse

type UpdateCanvasResponse struct {

	// State is the updated canvas state.
	State *CanvasState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

UpdateCanvasResponse is the response for UpdateCanvas.

func (*UpdateCanvasResponse) CloneMessageVT

func (*UpdateCanvasResponse) CloneVT

func (*UpdateCanvasResponse) EqualMessageVT

func (this *UpdateCanvasResponse) EqualMessageVT(thatMsg any) bool

func (*UpdateCanvasResponse) EqualVT

func (this *UpdateCanvasResponse) EqualVT(that *UpdateCanvasResponse) bool

func (*UpdateCanvasResponse) GetState

func (x *UpdateCanvasResponse) GetState() *CanvasState

func (*UpdateCanvasResponse) MarshalJSON

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

MarshalJSON marshals the UpdateCanvasResponse to JSON.

func (*UpdateCanvasResponse) MarshalProtoJSON

func (x *UpdateCanvasResponse) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the UpdateCanvasResponse message to JSON.

func (*UpdateCanvasResponse) MarshalProtoText

func (x *UpdateCanvasResponse) MarshalProtoText() string

func (*UpdateCanvasResponse) MarshalToSizedBufferVT

func (m *UpdateCanvasResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UpdateCanvasResponse) MarshalToVT

func (m *UpdateCanvasResponse) MarshalToVT(dAtA []byte) (int, error)

func (*UpdateCanvasResponse) MarshalVT

func (m *UpdateCanvasResponse) MarshalVT() (dAtA []byte, err error)

func (*UpdateCanvasResponse) ProtoMessage

func (*UpdateCanvasResponse) ProtoMessage()

func (*UpdateCanvasResponse) Reset

func (x *UpdateCanvasResponse) Reset()

func (*UpdateCanvasResponse) SizeVT

func (m *UpdateCanvasResponse) SizeVT() (n int)

func (*UpdateCanvasResponse) String

func (x *UpdateCanvasResponse) String() string

func (*UpdateCanvasResponse) UnmarshalJSON

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

UnmarshalJSON unmarshals the UpdateCanvasResponse from JSON.

func (*UpdateCanvasResponse) UnmarshalProtoJSON

func (x *UpdateCanvasResponse) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the UpdateCanvasResponse message from JSON.

func (*UpdateCanvasResponse) UnmarshalVT

func (m *UpdateCanvasResponse) UnmarshalVT(dAtA []byte) error

type WatchCanvasStateRequest

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

WatchCanvasStateRequest is the request for WatchCanvasState.

func (*WatchCanvasStateRequest) CloneMessageVT

func (*WatchCanvasStateRequest) CloneVT

func (*WatchCanvasStateRequest) EqualMessageVT

func (this *WatchCanvasStateRequest) EqualMessageVT(thatMsg any) bool

func (*WatchCanvasStateRequest) EqualVT

func (*WatchCanvasStateRequest) MarshalJSON

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

MarshalJSON marshals the WatchCanvasStateRequest to JSON.

func (*WatchCanvasStateRequest) MarshalProtoJSON

func (x *WatchCanvasStateRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the WatchCanvasStateRequest message to JSON.

func (*WatchCanvasStateRequest) MarshalProtoText

func (x *WatchCanvasStateRequest) MarshalProtoText() string

func (*WatchCanvasStateRequest) MarshalToSizedBufferVT

func (m *WatchCanvasStateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WatchCanvasStateRequest) MarshalToVT

func (m *WatchCanvasStateRequest) MarshalToVT(dAtA []byte) (int, error)

func (*WatchCanvasStateRequest) MarshalVT

func (m *WatchCanvasStateRequest) MarshalVT() (dAtA []byte, err error)

func (*WatchCanvasStateRequest) ProtoMessage

func (*WatchCanvasStateRequest) ProtoMessage()

func (*WatchCanvasStateRequest) Reset

func (x *WatchCanvasStateRequest) Reset()

func (*WatchCanvasStateRequest) SizeVT

func (m *WatchCanvasStateRequest) SizeVT() (n int)

func (*WatchCanvasStateRequest) String

func (x *WatchCanvasStateRequest) String() string

func (*WatchCanvasStateRequest) UnmarshalJSON

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

UnmarshalJSON unmarshals the WatchCanvasStateRequest from JSON.

func (*WatchCanvasStateRequest) UnmarshalProtoJSON

func (x *WatchCanvasStateRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the WatchCanvasStateRequest message from JSON.

func (*WatchCanvasStateRequest) UnmarshalVT

func (m *WatchCanvasStateRequest) UnmarshalVT(dAtA []byte) error

type WatchCanvasStateResponse

type WatchCanvasStateResponse struct {

	// State is the current canvas state.
	State *CanvasState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

WatchCanvasStateResponse is a stream response with canvas state.

func (*WatchCanvasStateResponse) CloneMessageVT

func (*WatchCanvasStateResponse) CloneVT

func (*WatchCanvasStateResponse) EqualMessageVT

func (this *WatchCanvasStateResponse) EqualMessageVT(thatMsg any) bool

func (*WatchCanvasStateResponse) EqualVT

func (*WatchCanvasStateResponse) GetState

func (x *WatchCanvasStateResponse) GetState() *CanvasState

func (*WatchCanvasStateResponse) MarshalJSON

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

MarshalJSON marshals the WatchCanvasStateResponse to JSON.

func (*WatchCanvasStateResponse) MarshalProtoJSON

func (x *WatchCanvasStateResponse) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the WatchCanvasStateResponse message to JSON.

func (*WatchCanvasStateResponse) MarshalProtoText

func (x *WatchCanvasStateResponse) MarshalProtoText() string

func (*WatchCanvasStateResponse) MarshalToSizedBufferVT

func (m *WatchCanvasStateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WatchCanvasStateResponse) MarshalToVT

func (m *WatchCanvasStateResponse) MarshalToVT(dAtA []byte) (int, error)

func (*WatchCanvasStateResponse) MarshalVT

func (m *WatchCanvasStateResponse) MarshalVT() (dAtA []byte, err error)

func (*WatchCanvasStateResponse) ProtoMessage

func (*WatchCanvasStateResponse) ProtoMessage()

func (*WatchCanvasStateResponse) Reset

func (x *WatchCanvasStateResponse) Reset()

func (*WatchCanvasStateResponse) SizeVT

func (m *WatchCanvasStateResponse) SizeVT() (n int)

func (*WatchCanvasStateResponse) String

func (x *WatchCanvasStateResponse) String() string

func (*WatchCanvasStateResponse) UnmarshalJSON

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

UnmarshalJSON unmarshals the WatchCanvasStateResponse from JSON.

func (*WatchCanvasStateResponse) UnmarshalProtoJSON

func (x *WatchCanvasStateResponse) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the WatchCanvasStateResponse message from JSON.

func (*WatchCanvasStateResponse) UnmarshalVT

func (m *WatchCanvasStateResponse) UnmarshalVT(dAtA []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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