Documentation
¶
Index ¶
- Constants
- Variables
- func NewCanvasNodeBlock() block.Block
- func NewCanvasStorageBlock() block.Block
- func NewSRPCCanvasResourceServiceHandler(impl SRPCCanvasResourceServiceServer, serviceID string) srpc.Handler
- func SRPCRegisterCanvasResourceService(mux srpc.Mux, impl SRPCCanvasResourceServiceServer) error
- func WriteCanvasState(ctx context.Context, bcs *block.Cursor, previous *CanvasState, ...) error
- type CanvasEdge
- func (m *CanvasEdge) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CanvasEdge) CloneVT() *CanvasEdge
- func (this *CanvasEdge) EqualMessageVT(thatMsg any) bool
- func (this *CanvasEdge) EqualVT(that *CanvasEdge) bool
- func (x *CanvasEdge) GetId() string
- func (x *CanvasEdge) GetLabel() string
- func (x *CanvasEdge) GetSourceNodeId() string
- func (x *CanvasEdge) GetStyle() EdgeStyle
- func (x *CanvasEdge) GetTargetNodeId() string
- func (x *CanvasEdge) MarshalJSON() ([]byte, error)
- func (x *CanvasEdge) MarshalProtoJSON(s *json.MarshalState)
- func (x *CanvasEdge) MarshalProtoText() string
- func (m *CanvasEdge) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CanvasEdge) MarshalToVT(dAtA []byte) (int, error)
- func (m *CanvasEdge) MarshalVT() (dAtA []byte, err error)
- func (*CanvasEdge) ProtoMessage()
- func (x *CanvasEdge) Reset()
- func (m *CanvasEdge) SizeVT() (n int)
- func (x *CanvasEdge) String() string
- func (x *CanvasEdge) UnmarshalJSON(b []byte) error
- func (x *CanvasEdge) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CanvasEdge) UnmarshalVT(dAtA []byte) error
- type CanvasLayoutMetadata
- func (m *CanvasLayoutMetadata) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CanvasLayoutMetadata) CloneVT() *CanvasLayoutMetadata
- func (this *CanvasLayoutMetadata) EqualMessageVT(thatMsg any) bool
- func (this *CanvasLayoutMetadata) EqualVT(that *CanvasLayoutMetadata) bool
- func (x *CanvasLayoutMetadata) GetGroup() string
- func (x *CanvasLayoutMetadata) GetLane() string
- func (x *CanvasLayoutMetadata) GetProjectionOwner() string
- func (x *CanvasLayoutMetadata) GetRank() int32
- func (x *CanvasLayoutMetadata) GetStableNodeId() string
- func (x *CanvasLayoutMetadata) MarshalJSON() ([]byte, error)
- func (x *CanvasLayoutMetadata) MarshalProtoJSON(s *json.MarshalState)
- func (x *CanvasLayoutMetadata) MarshalProtoText() string
- func (m *CanvasLayoutMetadata) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CanvasLayoutMetadata) MarshalToVT(dAtA []byte) (int, error)
- func (m *CanvasLayoutMetadata) MarshalVT() (dAtA []byte, err error)
- func (*CanvasLayoutMetadata) ProtoMessage()
- func (x *CanvasLayoutMetadata) Reset()
- func (m *CanvasLayoutMetadata) SizeVT() (n int)
- func (x *CanvasLayoutMetadata) String() string
- func (x *CanvasLayoutMetadata) UnmarshalJSON(b []byte) error
- func (x *CanvasLayoutMetadata) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CanvasLayoutMetadata) UnmarshalVT(dAtA []byte) error
- type CanvasNode
- func (m *CanvasNode) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CanvasNode) CloneVT() *CanvasNode
- func (this *CanvasNode) EqualMessageVT(thatMsg any) bool
- func (this *CanvasNode) EqualVT(that *CanvasNode) bool
- func (x *CanvasNode) GetHeight() float64
- func (x *CanvasNode) GetId() string
- func (x *CanvasNode) GetObjectKey() string
- func (x *CanvasNode) GetPinned() bool
- func (x *CanvasNode) GetShapeData() []byte
- func (x *CanvasNode) GetTextContent() string
- func (x *CanvasNode) GetType() NodeType
- func (x *CanvasNode) GetViewPath() string
- func (x *CanvasNode) GetWidth() float64
- func (x *CanvasNode) GetX() float64
- func (x *CanvasNode) GetY() float64
- func (x *CanvasNode) GetZIndex() int32
- func (n *CanvasNode) MarshalBlock() ([]byte, error)
- func (x *CanvasNode) MarshalJSON() ([]byte, error)
- func (x *CanvasNode) MarshalProtoJSON(s *json.MarshalState)
- func (x *CanvasNode) MarshalProtoText() string
- func (m *CanvasNode) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CanvasNode) MarshalToVT(dAtA []byte) (int, error)
- func (m *CanvasNode) MarshalVT() (dAtA []byte, err error)
- func (*CanvasNode) ProtoMessage()
- func (x *CanvasNode) Reset()
- func (m *CanvasNode) SizeVT() (n int)
- func (x *CanvasNode) String() string
- func (n *CanvasNode) UnmarshalBlock(data []byte) error
- func (x *CanvasNode) UnmarshalJSON(b []byte) error
- func (x *CanvasNode) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CanvasNode) UnmarshalVT(dAtA []byte) error
- type CanvasResource
- func (r *CanvasResource) Close()
- func (r *CanvasResource) GetCanvasState(_ context.Context, _ *GetCanvasStateRequest) (*GetCanvasStateResponse, error)
- func (r *CanvasResource) GetMux() srpc.Mux
- func (r *CanvasResource) UpdateCanvas(ctx context.Context, req *UpdateCanvasRequest) (*UpdateCanvasResponse, error)
- func (r *CanvasResource) WatchCanvasState(_ *WatchCanvasStateRequest, ...) error
- type CanvasState
- func (s *CanvasState) Clone() *CanvasState
- func (m *CanvasState) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CanvasState) CloneVT() *CanvasState
- func (this *CanvasState) EqualMessageVT(thatMsg any) bool
- func (this *CanvasState) EqualVT(that *CanvasState) bool
- func (x *CanvasState) GetEdges() []*CanvasEdge
- func (x *CanvasState) GetHiddenGraphLinks() []*HiddenGraphLink
- func (x *CanvasState) GetLayoutMetadata() map[string]*CanvasLayoutMetadata
- func (x *CanvasState) GetNodes() map[string]*CanvasNode
- func (x *CanvasState) GetStrokeTreeRef() []byte
- func (s *CanvasState) MarshalBlock() ([]byte, error)
- func (x *CanvasState) MarshalJSON() ([]byte, error)
- func (x *CanvasState) MarshalProtoJSON(s *json.MarshalState)
- func (x *CanvasState) MarshalProtoText() string
- func (m *CanvasState) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CanvasState) MarshalToVT(dAtA []byte) (int, error)
- func (m *CanvasState) MarshalVT() (dAtA []byte, err error)
- func (*CanvasState) ProtoMessage()
- func (x *CanvasState) Reset()
- func (m *CanvasState) SizeVT() (n int)
- func (x *CanvasState) String() string
- func (x *CanvasState) UnmarshalJSON(b []byte) error
- func (x *CanvasState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CanvasState) UnmarshalVT(dAtA []byte) error
- type CanvasState_LayoutMetadataEntry
- func (x *CanvasState_LayoutMetadataEntry) GetKey() string
- func (x *CanvasState_LayoutMetadataEntry) GetValue() *CanvasLayoutMetadata
- func (x *CanvasState_LayoutMetadataEntry) MarshalJSON() ([]byte, error)
- func (x *CanvasState_LayoutMetadataEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *CanvasState_LayoutMetadataEntry) MarshalProtoText() string
- func (*CanvasState_LayoutMetadataEntry) ProtoMessage()
- func (x *CanvasState_LayoutMetadataEntry) Reset()
- func (x *CanvasState_LayoutMetadataEntry) String() string
- func (x *CanvasState_LayoutMetadataEntry) UnmarshalJSON(b []byte) error
- func (x *CanvasState_LayoutMetadataEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type CanvasState_NodesEntry
- func (x *CanvasState_NodesEntry) GetKey() string
- func (x *CanvasState_NodesEntry) GetValue() *CanvasNode
- func (x *CanvasState_NodesEntry) MarshalJSON() ([]byte, error)
- func (x *CanvasState_NodesEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *CanvasState_NodesEntry) MarshalProtoText() string
- func (*CanvasState_NodesEntry) ProtoMessage()
- func (x *CanvasState_NodesEntry) Reset()
- func (x *CanvasState_NodesEntry) String() string
- func (x *CanvasState_NodesEntry) UnmarshalJSON(b []byte) error
- func (x *CanvasState_NodesEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type CanvasStorage
- func (s *CanvasStorage) ApplySubBlock(id uint32, next block.SubBlock) error
- func (m *CanvasStorage) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CanvasStorage) CloneVT() *CanvasStorage
- func (s *CanvasStorage) DecodedBlockCacheTypeKey() string
- func (this *CanvasStorage) EqualMessageVT(thatMsg any) bool
- func (this *CanvasStorage) EqualVT(that *CanvasStorage) bool
- func (x *CanvasStorage) GetEdges() []*CanvasEdge
- func (x *CanvasStorage) GetHiddenGraphLinks() []*HiddenGraphLink
- func (x *CanvasStorage) GetLayoutMetadata() map[string]*CanvasLayoutMetadata
- func (x *CanvasStorage) GetNodes() *block.KeyValueStore
- func (x *CanvasStorage) GetStrokeTreeRef() []byte
- func (s *CanvasStorage) GetSubBlockCtor(id uint32) block.SubBlockCtor
- func (s *CanvasStorage) GetSubBlocks() map[uint32]block.SubBlock
- func (s *CanvasStorage) MarshalBlock() ([]byte, error)
- func (x *CanvasStorage) MarshalJSON() ([]byte, error)
- func (x *CanvasStorage) MarshalProtoJSON(s *json.MarshalState)
- func (x *CanvasStorage) MarshalProtoText() string
- func (m *CanvasStorage) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CanvasStorage) MarshalToVT(dAtA []byte) (int, error)
- func (m *CanvasStorage) MarshalVT() (dAtA []byte, err error)
- func (*CanvasStorage) ProtoMessage()
- func (x *CanvasStorage) Reset()
- func (m *CanvasStorage) SizeVT() (n int)
- func (x *CanvasStorage) String() string
- func (s *CanvasStorage) UnmarshalBlock(data []byte) error
- func (x *CanvasStorage) UnmarshalJSON(b []byte) error
- func (x *CanvasStorage) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CanvasStorage) UnmarshalVT(dAtA []byte) error
- func (s *CanvasStorage) Validate() error
- type CanvasStorage_LayoutMetadataEntry
- func (x *CanvasStorage_LayoutMetadataEntry) GetKey() string
- func (x *CanvasStorage_LayoutMetadataEntry) GetValue() *CanvasLayoutMetadata
- func (x *CanvasStorage_LayoutMetadataEntry) MarshalJSON() ([]byte, error)
- func (x *CanvasStorage_LayoutMetadataEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *CanvasStorage_LayoutMetadataEntry) MarshalProtoText() string
- func (*CanvasStorage_LayoutMetadataEntry) ProtoMessage()
- func (x *CanvasStorage_LayoutMetadataEntry) Reset()
- func (x *CanvasStorage_LayoutMetadataEntry) String() string
- func (x *CanvasStorage_LayoutMetadataEntry) UnmarshalJSON(b []byte) error
- func (x *CanvasStorage_LayoutMetadataEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type EdgeStyle
- func (x EdgeStyle) Enum() *EdgeStyle
- func (x EdgeStyle) MarshalJSON() ([]byte, error)
- func (x EdgeStyle) MarshalProtoJSON(s *json.MarshalState)
- func (x EdgeStyle) MarshalProtoText() string
- func (x EdgeStyle) MarshalText() ([]byte, error)
- func (x EdgeStyle) String() string
- func (x *EdgeStyle) UnmarshalJSON(b []byte) error
- func (x *EdgeStyle) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *EdgeStyle) UnmarshalText(b []byte) error
- type GetCanvasStateRequest
- func (m *GetCanvasStateRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *GetCanvasStateRequest) CloneVT() *GetCanvasStateRequest
- func (this *GetCanvasStateRequest) EqualMessageVT(thatMsg any) bool
- func (this *GetCanvasStateRequest) EqualVT(that *GetCanvasStateRequest) bool
- func (x *GetCanvasStateRequest) MarshalJSON() ([]byte, error)
- func (x *GetCanvasStateRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *GetCanvasStateRequest) MarshalProtoText() string
- func (m *GetCanvasStateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetCanvasStateRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetCanvasStateRequest) MarshalVT() (dAtA []byte, err error)
- func (*GetCanvasStateRequest) ProtoMessage()
- func (x *GetCanvasStateRequest) Reset()
- func (m *GetCanvasStateRequest) SizeVT() (n int)
- func (x *GetCanvasStateRequest) String() string
- func (x *GetCanvasStateRequest) UnmarshalJSON(b []byte) error
- func (x *GetCanvasStateRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *GetCanvasStateRequest) UnmarshalVT(dAtA []byte) error
- type GetCanvasStateResponse
- func (m *GetCanvasStateResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *GetCanvasStateResponse) CloneVT() *GetCanvasStateResponse
- func (this *GetCanvasStateResponse) EqualMessageVT(thatMsg any) bool
- func (this *GetCanvasStateResponse) EqualVT(that *GetCanvasStateResponse) bool
- func (x *GetCanvasStateResponse) GetState() *CanvasState
- func (x *GetCanvasStateResponse) MarshalJSON() ([]byte, error)
- func (x *GetCanvasStateResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *GetCanvasStateResponse) MarshalProtoText() string
- func (m *GetCanvasStateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetCanvasStateResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetCanvasStateResponse) MarshalVT() (dAtA []byte, err error)
- func (*GetCanvasStateResponse) ProtoMessage()
- func (x *GetCanvasStateResponse) Reset()
- func (m *GetCanvasStateResponse) SizeVT() (n int)
- func (x *GetCanvasStateResponse) String() string
- func (x *GetCanvasStateResponse) UnmarshalJSON(b []byte) error
- func (x *GetCanvasStateResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *GetCanvasStateResponse) UnmarshalVT(dAtA []byte) error
- type HiddenGraphLink
- func (m *HiddenGraphLink) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *HiddenGraphLink) CloneVT() *HiddenGraphLink
- func (this *HiddenGraphLink) EqualMessageVT(thatMsg any) bool
- func (this *HiddenGraphLink) EqualVT(that *HiddenGraphLink) bool
- func (x *HiddenGraphLink) GetLabel() string
- func (x *HiddenGraphLink) GetObject() string
- func (x *HiddenGraphLink) GetPredicate() string
- func (x *HiddenGraphLink) GetSubject() string
- func (x *HiddenGraphLink) MarshalJSON() ([]byte, error)
- func (x *HiddenGraphLink) MarshalProtoJSON(s *json.MarshalState)
- func (x *HiddenGraphLink) MarshalProtoText() string
- func (m *HiddenGraphLink) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HiddenGraphLink) MarshalToVT(dAtA []byte) (int, error)
- func (m *HiddenGraphLink) MarshalVT() (dAtA []byte, err error)
- func (*HiddenGraphLink) ProtoMessage()
- func (x *HiddenGraphLink) Reset()
- func (m *HiddenGraphLink) SizeVT() (n int)
- func (x *HiddenGraphLink) String() string
- func (x *HiddenGraphLink) UnmarshalJSON(b []byte) error
- func (x *HiddenGraphLink) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *HiddenGraphLink) UnmarshalVT(dAtA []byte) error
- type NodeType
- func (x NodeType) Enum() *NodeType
- func (x NodeType) MarshalJSON() ([]byte, error)
- func (x NodeType) MarshalProtoJSON(s *json.MarshalState)
- func (x NodeType) MarshalProtoText() string
- func (x NodeType) MarshalText() ([]byte, error)
- func (x NodeType) String() string
- func (x *NodeType) UnmarshalJSON(b []byte) error
- func (x *NodeType) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *NodeType) UnmarshalText(b []byte) error
- type SRPCCanvasResourceServiceClient
- type SRPCCanvasResourceServiceHandler
- func (SRPCCanvasResourceServiceHandler) GetMethodIDs() []string
- func (d *SRPCCanvasResourceServiceHandler) GetServiceID() string
- func (d *SRPCCanvasResourceServiceHandler) InvokeMethod(serviceID, methodID string, strm srpc.Stream) (bool, error)
- func (SRPCCanvasResourceServiceHandler) InvokeMethod_GetCanvasState(impl SRPCCanvasResourceServiceServer, strm srpc.Stream) error
- func (SRPCCanvasResourceServiceHandler) InvokeMethod_UpdateCanvas(impl SRPCCanvasResourceServiceServer, strm srpc.Stream) error
- func (SRPCCanvasResourceServiceHandler) InvokeMethod_WatchCanvasState(impl SRPCCanvasResourceServiceServer, strm srpc.Stream) error
- type SRPCCanvasResourceServiceServer
- type SRPCCanvasResourceService_GetCanvasStateStream
- type SRPCCanvasResourceService_UpdateCanvasStream
- type SRPCCanvasResourceService_WatchCanvasStateClient
- type SRPCCanvasResourceService_WatchCanvasStateStream
- type UpdateCanvasRequest
- func (m *UpdateCanvasRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *UpdateCanvasRequest) CloneVT() *UpdateCanvasRequest
- func (this *UpdateCanvasRequest) EqualMessageVT(thatMsg any) bool
- func (this *UpdateCanvasRequest) EqualVT(that *UpdateCanvasRequest) bool
- func (x *UpdateCanvasRequest) GetAddEdges() []*CanvasEdge
- func (x *UpdateCanvasRequest) GetAddHiddenGraphLinks() []*HiddenGraphLink
- func (x *UpdateCanvasRequest) GetRemoveEdgeIds() []string
- func (x *UpdateCanvasRequest) GetRemoveHiddenGraphLinks() []*HiddenGraphLink
- func (x *UpdateCanvasRequest) GetRemoveLayoutMetadataNodeIds() []string
- func (x *UpdateCanvasRequest) GetRemoveNodeIds() []string
- func (x *UpdateCanvasRequest) GetSetLayoutMetadata() map[string]*CanvasLayoutMetadata
- func (x *UpdateCanvasRequest) GetSetNodes() map[string]*CanvasNode
- func (x *UpdateCanvasRequest) MarshalJSON() ([]byte, error)
- func (x *UpdateCanvasRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *UpdateCanvasRequest) MarshalProtoText() string
- func (m *UpdateCanvasRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UpdateCanvasRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *UpdateCanvasRequest) MarshalVT() (dAtA []byte, err error)
- func (*UpdateCanvasRequest) ProtoMessage()
- func (x *UpdateCanvasRequest) Reset()
- func (m *UpdateCanvasRequest) SizeVT() (n int)
- func (x *UpdateCanvasRequest) String() string
- func (x *UpdateCanvasRequest) UnmarshalJSON(b []byte) error
- func (x *UpdateCanvasRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *UpdateCanvasRequest) UnmarshalVT(dAtA []byte) error
- type UpdateCanvasRequest_SetLayoutMetadataEntry
- func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) GetKey() string
- func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) GetValue() *CanvasLayoutMetadata
- func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) MarshalJSON() ([]byte, error)
- func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) MarshalProtoText() string
- func (*UpdateCanvasRequest_SetLayoutMetadataEntry) ProtoMessage()
- func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) Reset()
- func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) String() string
- func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) UnmarshalJSON(b []byte) error
- func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type UpdateCanvasRequest_SetNodesEntry
- func (x *UpdateCanvasRequest_SetNodesEntry) GetKey() string
- func (x *UpdateCanvasRequest_SetNodesEntry) GetValue() *CanvasNode
- func (x *UpdateCanvasRequest_SetNodesEntry) MarshalJSON() ([]byte, error)
- func (x *UpdateCanvasRequest_SetNodesEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *UpdateCanvasRequest_SetNodesEntry) MarshalProtoText() string
- func (*UpdateCanvasRequest_SetNodesEntry) ProtoMessage()
- func (x *UpdateCanvasRequest_SetNodesEntry) Reset()
- func (x *UpdateCanvasRequest_SetNodesEntry) String() string
- func (x *UpdateCanvasRequest_SetNodesEntry) UnmarshalJSON(b []byte) error
- func (x *UpdateCanvasRequest_SetNodesEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type UpdateCanvasResponse
- func (m *UpdateCanvasResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *UpdateCanvasResponse) CloneVT() *UpdateCanvasResponse
- func (this *UpdateCanvasResponse) EqualMessageVT(thatMsg any) bool
- func (this *UpdateCanvasResponse) EqualVT(that *UpdateCanvasResponse) bool
- func (x *UpdateCanvasResponse) GetState() *CanvasState
- func (x *UpdateCanvasResponse) MarshalJSON() ([]byte, error)
- func (x *UpdateCanvasResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *UpdateCanvasResponse) MarshalProtoText() string
- func (m *UpdateCanvasResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UpdateCanvasResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *UpdateCanvasResponse) MarshalVT() (dAtA []byte, err error)
- func (*UpdateCanvasResponse) ProtoMessage()
- func (x *UpdateCanvasResponse) Reset()
- func (m *UpdateCanvasResponse) SizeVT() (n int)
- func (x *UpdateCanvasResponse) String() string
- func (x *UpdateCanvasResponse) UnmarshalJSON(b []byte) error
- func (x *UpdateCanvasResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *UpdateCanvasResponse) UnmarshalVT(dAtA []byte) error
- type WatchCanvasStateRequest
- func (m *WatchCanvasStateRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *WatchCanvasStateRequest) CloneVT() *WatchCanvasStateRequest
- func (this *WatchCanvasStateRequest) EqualMessageVT(thatMsg any) bool
- func (this *WatchCanvasStateRequest) EqualVT(that *WatchCanvasStateRequest) bool
- func (x *WatchCanvasStateRequest) MarshalJSON() ([]byte, error)
- func (x *WatchCanvasStateRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *WatchCanvasStateRequest) MarshalProtoText() string
- func (m *WatchCanvasStateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WatchCanvasStateRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *WatchCanvasStateRequest) MarshalVT() (dAtA []byte, err error)
- func (*WatchCanvasStateRequest) ProtoMessage()
- func (x *WatchCanvasStateRequest) Reset()
- func (m *WatchCanvasStateRequest) SizeVT() (n int)
- func (x *WatchCanvasStateRequest) String() string
- func (x *WatchCanvasStateRequest) UnmarshalJSON(b []byte) error
- func (x *WatchCanvasStateRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *WatchCanvasStateRequest) UnmarshalVT(dAtA []byte) error
- type WatchCanvasStateResponse
- func (m *WatchCanvasStateResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *WatchCanvasStateResponse) CloneVT() *WatchCanvasStateResponse
- func (this *WatchCanvasStateResponse) EqualMessageVT(thatMsg any) bool
- func (this *WatchCanvasStateResponse) EqualVT(that *WatchCanvasStateResponse) bool
- func (x *WatchCanvasStateResponse) GetState() *CanvasState
- func (x *WatchCanvasStateResponse) MarshalJSON() ([]byte, error)
- func (x *WatchCanvasStateResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *WatchCanvasStateResponse) MarshalProtoText() string
- func (m *WatchCanvasStateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WatchCanvasStateResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *WatchCanvasStateResponse) MarshalVT() (dAtA []byte, err error)
- func (*WatchCanvasStateResponse) ProtoMessage()
- func (x *WatchCanvasStateResponse) Reset()
- func (m *WatchCanvasStateResponse) SizeVT() (n int)
- func (x *WatchCanvasStateResponse) String() string
- func (x *WatchCanvasStateResponse) UnmarshalJSON(b []byte) error
- func (x *WatchCanvasStateResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *WatchCanvasStateResponse) UnmarshalVT(dAtA []byte) error
Constants ¶
const SRPCCanvasResourceServiceServiceID = "s4wave.canvas.CanvasResourceService"
Variables ¶
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.
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
NewCanvasNodeBlock constructs a Canvas node block.
func NewCanvasStorageBlock ¶ added in v0.57.2
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 (m *CanvasLayoutMetadata) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*CanvasLayoutMetadata) CloneVT ¶ added in v0.51.8
func (m *CanvasLayoutMetadata) CloneVT() *CanvasLayoutMetadata
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 ¶
func (r *CanvasResource) GetCanvasState(_ context.Context, _ *GetCanvasStateRequest) (*GetCanvasStateResponse, error)
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 ¶
func (r *CanvasResource) UpdateCanvas(ctx context.Context, req *UpdateCanvasRequest) (*UpdateCanvasResponse, error)
UpdateCanvas applies a batch update to the canvas.
func (*CanvasResource) WatchCanvasState ¶
func (r *CanvasResource) WatchCanvasState(_ *WatchCanvasStateRequest, strm SRPCCanvasResourceService_WatchCanvasStateStream) error
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 ¶
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 (*CanvasState) GetHiddenGraphLinks ¶
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 (x *CanvasState_LayoutMetadataEntry) GetKey() string
func (*CanvasState_LayoutMetadataEntry) GetValue ¶ added in v0.51.8
func (x *CanvasState_LayoutMetadataEntry) GetValue() *CanvasLayoutMetadata
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 (x *CanvasState_LayoutMetadataEntry) Reset()
func (*CanvasState_LayoutMetadataEntry) String ¶ added in v0.51.8
func (x *CanvasState_LayoutMetadataEntry) String() string
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
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 (*CanvasStorage) GetHiddenGraphLinks ¶ added in v0.57.2
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 (x *CanvasStorage_LayoutMetadataEntry) GetKey() string
func (*CanvasStorage_LayoutMetadataEntry) GetValue ¶ added in v0.57.2
func (x *CanvasStorage_LayoutMetadataEntry) GetValue() *CanvasLayoutMetadata
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 (x *CanvasStorage_LayoutMetadataEntry) Reset()
func (*CanvasStorage_LayoutMetadataEntry) String ¶ added in v0.57.2
func (x *CanvasStorage_LayoutMetadataEntry) String() string
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.
func (EdgeStyle) MarshalJSON ¶
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 (EdgeStyle) MarshalText ¶
MarshalText marshals the EdgeStyle to text.
func (*EdgeStyle) UnmarshalJSON ¶
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 ¶
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 (m *GetCanvasStateRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*GetCanvasStateRequest) CloneVT ¶
func (m *GetCanvasStateRequest) CloneVT() *GetCanvasStateRequest
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 (m *GetCanvasStateResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*GetCanvasStateResponse) CloneVT ¶
func (m *GetCanvasStateResponse) CloneVT() *GetCanvasStateResponse
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 ¶
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) MarshalJSON ¶
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 (NodeType) MarshalText ¶
MarshalText marshals the NodeType to text.
func (*NodeType) UnmarshalJSON ¶
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 ¶
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 (SRPCCanvasResourceServiceHandler) InvokeMethod_GetCanvasState ¶
func (SRPCCanvasResourceServiceHandler) InvokeMethod_GetCanvasState(impl SRPCCanvasResourceServiceServer, strm srpc.Stream) error
func (SRPCCanvasResourceServiceHandler) InvokeMethod_UpdateCanvas ¶
func (SRPCCanvasResourceServiceHandler) InvokeMethod_UpdateCanvas(impl SRPCCanvasResourceServiceServer, strm srpc.Stream) error
func (SRPCCanvasResourceServiceHandler) InvokeMethod_WatchCanvasState ¶
func (SRPCCanvasResourceServiceHandler) InvokeMethod_WatchCanvasState(impl SRPCCanvasResourceServiceServer, strm srpc.Stream) error
type SRPCCanvasResourceServiceServer ¶
type SRPCCanvasResourceServiceServer interface {
GetCanvasState(context.Context, *GetCanvasStateRequest) (*GetCanvasStateResponse, error)
UpdateCanvas(context.Context, *UpdateCanvasRequest) (*UpdateCanvasResponse, error)
WatchCanvasState(*WatchCanvasStateRequest, SRPCCanvasResourceService_WatchCanvasStateStream) error
}
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 (m *UpdateCanvasRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*UpdateCanvasRequest) CloneVT ¶
func (m *UpdateCanvasRequest) CloneVT() *UpdateCanvasRequest
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 (*UpdateCanvasRequest) GetAddHiddenGraphLinks ¶
func (x *UpdateCanvasRequest) GetAddHiddenGraphLinks() []*HiddenGraphLink
func (*UpdateCanvasRequest) GetRemoveEdgeIds ¶
func (x *UpdateCanvasRequest) GetRemoveEdgeIds() []string
func (*UpdateCanvasRequest) GetRemoveHiddenGraphLinks ¶
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 (x *UpdateCanvasRequest_SetLayoutMetadataEntry) GetKey() string
func (*UpdateCanvasRequest_SetLayoutMetadataEntry) GetValue ¶ added in v0.51.8
func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) GetValue() *CanvasLayoutMetadata
func (*UpdateCanvasRequest_SetLayoutMetadataEntry) MarshalJSON ¶ added in v0.51.8
func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) MarshalJSON() ([]byte, error)
MarshalJSON marshals the UpdateCanvasRequest_SetLayoutMetadataEntry to JSON.
func (*UpdateCanvasRequest_SetLayoutMetadataEntry) MarshalProtoJSON ¶ added in v0.51.8
func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) MarshalProtoJSON(s *json.MarshalState)
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) ProtoMessage()
func (*UpdateCanvasRequest_SetLayoutMetadataEntry) Reset ¶ added in v0.51.8
func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) Reset()
func (*UpdateCanvasRequest_SetLayoutMetadataEntry) String ¶ added in v0.51.8
func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) String() string
func (*UpdateCanvasRequest_SetLayoutMetadataEntry) UnmarshalJSON ¶ added in v0.51.8
func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the UpdateCanvasRequest_SetLayoutMetadataEntry from JSON.
func (*UpdateCanvasRequest_SetLayoutMetadataEntry) UnmarshalProtoJSON ¶ added in v0.51.8
func (x *UpdateCanvasRequest_SetLayoutMetadataEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
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 (x *UpdateCanvasRequest_SetNodesEntry) GetKey() string
func (*UpdateCanvasRequest_SetNodesEntry) GetValue ¶
func (x *UpdateCanvasRequest_SetNodesEntry) GetValue() *CanvasNode
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 (x *UpdateCanvasRequest_SetNodesEntry) Reset()
func (*UpdateCanvasRequest_SetNodesEntry) String ¶
func (x *UpdateCanvasRequest_SetNodesEntry) String() 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 (m *UpdateCanvasResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*UpdateCanvasResponse) CloneVT ¶
func (m *UpdateCanvasResponse) CloneVT() *UpdateCanvasResponse
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 (m *WatchCanvasStateRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*WatchCanvasStateRequest) CloneVT ¶
func (m *WatchCanvasStateRequest) CloneVT() *WatchCanvasStateRequest
func (*WatchCanvasStateRequest) EqualMessageVT ¶
func (this *WatchCanvasStateRequest) EqualMessageVT(thatMsg any) bool
func (*WatchCanvasStateRequest) EqualVT ¶
func (this *WatchCanvasStateRequest) EqualVT(that *WatchCanvasStateRequest) bool
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 (m *WatchCanvasStateResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*WatchCanvasStateResponse) CloneVT ¶
func (m *WatchCanvasStateResponse) CloneVT() *WatchCanvasStateResponse
func (*WatchCanvasStateResponse) EqualMessageVT ¶
func (this *WatchCanvasStateResponse) EqualMessageVT(thatMsg any) bool
func (*WatchCanvasStateResponse) EqualVT ¶
func (this *WatchCanvasStateResponse) EqualVT(that *WatchCanvasStateResponse) bool
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