Documentation
¶
Index ¶
- Constants
- Variables
- func LookupSqlWorkbenchSetRootOp(_ context.Context, opTypeID string) (world.Operation, error)
- func SqlWorkbenchFactory(ctx context.Context, _ *logrus.Entry, _ bus.Bus, _ world.Engine, ...) (srpc.Invoker, func(), error)
- type SqlWorkbenchResource
- func (r *SqlWorkbenchResource) AddPin(ctx context.Context, req *s4wave_sql_workbench.AddPinRequest) (*s4wave_sql_workbench.AddPinResponse, error)
- func (r *SqlWorkbenchResource) Close()
- func (r *SqlWorkbenchResource) GetMux() srpc.Mux
- func (r *SqlWorkbenchResource) GetWorkbench(ctx context.Context, _ *s4wave_sql_workbench.GetWorkbenchRequest) (*s4wave_sql_workbench.GetWorkbenchResponse, error)
- func (r *SqlWorkbenchResource) RemovePin(ctx context.Context, req *s4wave_sql_workbench.RemovePinRequest) (*s4wave_sql_workbench.RemovePinResponse, error)
- func (r *SqlWorkbenchResource) SetLayout(ctx context.Context, req *s4wave_sql_workbench.SetLayoutRequest) (*s4wave_sql_workbench.SetLayoutResponse, error)
- type SqlWorkbenchSetRootOp
- func (o *SqlWorkbenchSetRootOp) ApplyWorldObjectOp(ctx context.Context, _ *logrus.Entry, os world.ObjectState, _ peer.ID) (bool, error)
- func (o *SqlWorkbenchSetRootOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (bool, error)
- func (m *SqlWorkbenchSetRootOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SqlWorkbenchSetRootOp) CloneVT() *SqlWorkbenchSetRootOp
- func (this *SqlWorkbenchSetRootOp) EqualMessageVT(thatMsg any) bool
- func (this *SqlWorkbenchSetRootOp) EqualVT(that *SqlWorkbenchSetRootOp) bool
- func (x *SqlWorkbenchSetRootOp) GetObjectKey() string
- func (o *SqlWorkbenchSetRootOp) GetOperationTypeId() string
- func (x *SqlWorkbenchSetRootOp) GetRootRef() *bucket.ObjectRef
- func (o *SqlWorkbenchSetRootOp) MarshalBlock() ([]byte, error)
- func (x *SqlWorkbenchSetRootOp) MarshalJSON() ([]byte, error)
- func (x *SqlWorkbenchSetRootOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *SqlWorkbenchSetRootOp) MarshalProtoText() string
- func (m *SqlWorkbenchSetRootOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SqlWorkbenchSetRootOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *SqlWorkbenchSetRootOp) MarshalVT() (dAtA []byte, err error)
- func (*SqlWorkbenchSetRootOp) ProtoMessage()
- func (x *SqlWorkbenchSetRootOp) Reset()
- func (m *SqlWorkbenchSetRootOp) SizeVT() (n int)
- func (x *SqlWorkbenchSetRootOp) String() string
- func (o *SqlWorkbenchSetRootOp) UnmarshalBlock(data []byte) error
- func (x *SqlWorkbenchSetRootOp) UnmarshalJSON(b []byte) error
- func (x *SqlWorkbenchSetRootOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SqlWorkbenchSetRootOp) UnmarshalVT(dAtA []byte) error
- func (o *SqlWorkbenchSetRootOp) Validate() error
Constants ¶
const SqlWorkbenchSetRootOpId = "sql/workbench/set-root"
SqlWorkbenchSetRootOpId is the world op id for advancing a sql/workbench root.
Variables ¶
var SqlWorkbenchType = objecttype.NewObjectType( s4wave_sql_workbench.SqlWorkbenchTypeID, SqlWorkbenchFactory, )
SqlWorkbenchType registers the SQL workbench world ObjectType.
Functions ¶
func LookupSqlWorkbenchSetRootOp ¶
LookupSqlWorkbenchSetRootOp returns an empty SQL workbench set-root op for lookup.
Types ¶
type SqlWorkbenchResource ¶
type SqlWorkbenchResource struct {
// contains filtered or unexported fields
}
SqlWorkbenchResource serves SqlWorkbenchResourceService for one SQL workbench object.
func NewSqlWorkbenchResource ¶
func NewSqlWorkbenchResource( ws world.WorldState, objectKey string, ) *SqlWorkbenchResource
NewSqlWorkbenchResource constructs a SQL workbench resource.
func (*SqlWorkbenchResource) AddPin ¶
func (r *SqlWorkbenchResource) AddPin( ctx context.Context, req *s4wave_sql_workbench.AddPinRequest, ) (*s4wave_sql_workbench.AddPinResponse, error)
AddPin pins a sql/query object.
func (*SqlWorkbenchResource) Close ¶
func (r *SqlWorkbenchResource) Close()
Close releases the resource lifecycle.
func (*SqlWorkbenchResource) GetMux ¶
func (r *SqlWorkbenchResource) GetMux() srpc.Mux
GetMux returns the SRPC mux for this resource.
func (*SqlWorkbenchResource) GetWorkbench ¶
func (r *SqlWorkbenchResource) GetWorkbench( ctx context.Context, _ *s4wave_sql_workbench.GetWorkbenchRequest, ) (*s4wave_sql_workbench.GetWorkbenchResponse, error)
GetWorkbench returns the persisted workbench state.
func (*SqlWorkbenchResource) RemovePin ¶
func (r *SqlWorkbenchResource) RemovePin( ctx context.Context, req *s4wave_sql_workbench.RemovePinRequest, ) (*s4wave_sql_workbench.RemovePinResponse, error)
RemovePin removes a pinned sql/query object.
func (*SqlWorkbenchResource) SetLayout ¶
func (r *SqlWorkbenchResource) SetLayout( ctx context.Context, req *s4wave_sql_workbench.SetLayoutRequest, ) (*s4wave_sql_workbench.SetLayoutResponse, error)
SetLayout replaces the open tabs and layout preferences.
type SqlWorkbenchSetRootOp ¶
type SqlWorkbenchSetRootOp struct {
// ObjectKey is the sql/workbench object key to update.
ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
// RootRef is the committed workbench root reference.
RootRef *bucket.ObjectRef `protobuf:"bytes,2,opt,name=root_ref,json=rootRef,proto3" json:"rootRef,omitempty"`
// contains filtered or unexported fields
}
SqlWorkbenchSetRootOp advances a sql/workbench world object's root.
func NewSqlWorkbenchSetRootOp ¶
func NewSqlWorkbenchSetRootOp(objectKey string, rootRef *bucket.ObjectRef) *SqlWorkbenchSetRootOp
NewSqlWorkbenchSetRootOp constructs a SQL workbench set-root operation.
func (*SqlWorkbenchSetRootOp) ApplyWorldObjectOp ¶
func (o *SqlWorkbenchSetRootOp) ApplyWorldObjectOp( ctx context.Context, _ *logrus.Entry, os world.ObjectState, _ peer.ID, ) (bool, error)
ApplyWorldObjectOp applies the SQL workbench set-root operation to an object.
func (*SqlWorkbenchSetRootOp) ApplyWorldOp ¶
func (o *SqlWorkbenchSetRootOp) ApplyWorldOp( ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID, ) (bool, error)
ApplyWorldOp applies the SQL workbench set-root operation to a world.
func (*SqlWorkbenchSetRootOp) CloneMessageVT ¶
func (m *SqlWorkbenchSetRootOp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SqlWorkbenchSetRootOp) CloneVT ¶
func (m *SqlWorkbenchSetRootOp) CloneVT() *SqlWorkbenchSetRootOp
func (*SqlWorkbenchSetRootOp) EqualMessageVT ¶
func (this *SqlWorkbenchSetRootOp) EqualMessageVT(thatMsg any) bool
func (*SqlWorkbenchSetRootOp) EqualVT ¶
func (this *SqlWorkbenchSetRootOp) EqualVT(that *SqlWorkbenchSetRootOp) bool
func (*SqlWorkbenchSetRootOp) GetObjectKey ¶
func (x *SqlWorkbenchSetRootOp) GetObjectKey() string
func (*SqlWorkbenchSetRootOp) GetOperationTypeId ¶
func (o *SqlWorkbenchSetRootOp) GetOperationTypeId() string
GetOperationTypeId returns the operation type identifier.
func (*SqlWorkbenchSetRootOp) GetRootRef ¶
func (x *SqlWorkbenchSetRootOp) GetRootRef() *bucket.ObjectRef
func (*SqlWorkbenchSetRootOp) MarshalBlock ¶
func (o *SqlWorkbenchSetRootOp) MarshalBlock() ([]byte, error)
MarshalBlock marshals the SQL workbench set-root operation.
func (*SqlWorkbenchSetRootOp) MarshalJSON ¶
func (x *SqlWorkbenchSetRootOp) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SqlWorkbenchSetRootOp to JSON.
func (*SqlWorkbenchSetRootOp) MarshalProtoJSON ¶
func (x *SqlWorkbenchSetRootOp) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SqlWorkbenchSetRootOp message to JSON.
func (*SqlWorkbenchSetRootOp) MarshalProtoText ¶
func (x *SqlWorkbenchSetRootOp) MarshalProtoText() string
func (*SqlWorkbenchSetRootOp) MarshalToSizedBufferVT ¶
func (m *SqlWorkbenchSetRootOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SqlWorkbenchSetRootOp) MarshalToVT ¶
func (m *SqlWorkbenchSetRootOp) MarshalToVT(dAtA []byte) (int, error)
func (*SqlWorkbenchSetRootOp) MarshalVT ¶
func (m *SqlWorkbenchSetRootOp) MarshalVT() (dAtA []byte, err error)
func (*SqlWorkbenchSetRootOp) ProtoMessage ¶
func (*SqlWorkbenchSetRootOp) ProtoMessage()
func (*SqlWorkbenchSetRootOp) Reset ¶
func (x *SqlWorkbenchSetRootOp) Reset()
func (*SqlWorkbenchSetRootOp) SizeVT ¶
func (m *SqlWorkbenchSetRootOp) SizeVT() (n int)
func (*SqlWorkbenchSetRootOp) String ¶
func (x *SqlWorkbenchSetRootOp) String() string
func (*SqlWorkbenchSetRootOp) UnmarshalBlock ¶
func (o *SqlWorkbenchSetRootOp) UnmarshalBlock(data []byte) error
UnmarshalBlock unmarshals the SQL workbench set-root operation.
func (*SqlWorkbenchSetRootOp) UnmarshalJSON ¶
func (x *SqlWorkbenchSetRootOp) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SqlWorkbenchSetRootOp from JSON.
func (*SqlWorkbenchSetRootOp) UnmarshalProtoJSON ¶
func (x *SqlWorkbenchSetRootOp) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SqlWorkbenchSetRootOp message from JSON.
func (*SqlWorkbenchSetRootOp) UnmarshalVT ¶
func (m *SqlWorkbenchSetRootOp) UnmarshalVT(dAtA []byte) error
func (*SqlWorkbenchSetRootOp) Validate ¶
func (o *SqlWorkbenchSetRootOp) Validate() error
Validate performs cursory checks on the operation.