Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterScopeServiceServer(s grpc.ServiceRegistrar, srv ScopeServiceServer)
- type Caller
- type QueryEvent
- func (*QueryEvent) Descriptor() ([]byte, []int)deprecated
- func (x *QueryEvent) GetArgs() []string
- func (x *QueryEvent) GetCallers() []*Caller
- func (x *QueryEvent) GetDuration() *durationpb.Duration
- func (x *QueryEvent) GetError() string
- func (x *QueryEvent) GetId() string
- func (x *QueryEvent) GetOp() int32
- func (x *QueryEvent) GetQuery() string
- func (x *QueryEvent) GetRowsAffected() int64
- func (x *QueryEvent) GetStartTime() *timestamppb.Timestamp
- func (x *QueryEvent) GetTxId() string
- func (*QueryEvent) ProtoMessage()
- func (x *QueryEvent) ProtoReflect() protoreflect.Message
- func (x *QueryEvent) Reset()
- func (x *QueryEvent) String() string
- type ScopeServiceClient
- type ScopeServiceServer
- type ScopeService_WatchClient
- type ScopeService_WatchServer
- type UnimplementedScopeServiceServer
- type UnsafeScopeServiceServer
- type WatchRequest
- type WatchResponse
Constants ¶
const (
ScopeService_Watch_FullMethodName = "/scope.v1.ScopeService/Watch"
)
Variables ¶
var File_scope_v1_scope_proto protoreflect.FileDescriptor
var ScopeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "scope.v1.ScopeService", HandlerType: (*ScopeServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _ScopeService_Watch_Handler, ServerStreams: true, }, }, Metadata: "scope/v1/scope.proto", }
ScopeService_ServiceDesc is the grpc.ServiceDesc for ScopeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterScopeServiceServer ¶
func RegisterScopeServiceServer(s grpc.ServiceRegistrar, srv ScopeServiceServer)
Types ¶
type Caller ¶
type Caller struct {
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
Function string `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"`
// contains filtered or unexported fields
}
func (*Caller) Descriptor
deprecated
func (*Caller) GetFunction ¶
func (*Caller) ProtoMessage ¶
func (*Caller) ProtoMessage()
func (*Caller) ProtoReflect ¶
func (x *Caller) ProtoReflect() protoreflect.Message
type QueryEvent ¶
type QueryEvent struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Op int32 `protobuf:"varint,2,opt,name=op,proto3" json:"op,omitempty"`
Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
Args []string `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"`
RowsAffected int64 `protobuf:"varint,7,opt,name=rows_affected,json=rowsAffected,proto3" json:"rows_affected,omitempty"`
Error string `protobuf:"bytes,8,opt,name=error,proto3" json:"error,omitempty"`
Callers []*Caller `protobuf:"bytes,9,rep,name=callers,proto3" json:"callers,omitempty"`
TxId string `protobuf:"bytes,10,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
// contains filtered or unexported fields
}
func (*QueryEvent) Descriptor
deprecated
func (*QueryEvent) Descriptor() ([]byte, []int)
Deprecated: Use QueryEvent.ProtoReflect.Descriptor instead.
func (*QueryEvent) GetArgs ¶
func (x *QueryEvent) GetArgs() []string
func (*QueryEvent) GetCallers ¶
func (x *QueryEvent) GetCallers() []*Caller
func (*QueryEvent) GetDuration ¶
func (x *QueryEvent) GetDuration() *durationpb.Duration
func (*QueryEvent) GetError ¶
func (x *QueryEvent) GetError() string
func (*QueryEvent) GetId ¶
func (x *QueryEvent) GetId() string
func (*QueryEvent) GetOp ¶
func (x *QueryEvent) GetOp() int32
func (*QueryEvent) GetQuery ¶
func (x *QueryEvent) GetQuery() string
func (*QueryEvent) GetRowsAffected ¶
func (x *QueryEvent) GetRowsAffected() int64
func (*QueryEvent) GetStartTime ¶
func (x *QueryEvent) GetStartTime() *timestamppb.Timestamp
func (*QueryEvent) GetTxId ¶
func (x *QueryEvent) GetTxId() string
func (*QueryEvent) ProtoMessage ¶
func (*QueryEvent) ProtoMessage()
func (*QueryEvent) ProtoReflect ¶
func (x *QueryEvent) ProtoReflect() protoreflect.Message
func (*QueryEvent) Reset ¶
func (x *QueryEvent) Reset()
func (*QueryEvent) String ¶
func (x *QueryEvent) String() string
type ScopeServiceClient ¶
type ScopeServiceClient interface {
Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[WatchResponse], error)
}
ScopeServiceClient is the client API for ScopeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewScopeServiceClient ¶
func NewScopeServiceClient(cc grpc.ClientConnInterface) ScopeServiceClient
type ScopeServiceServer ¶
type ScopeServiceServer interface {
Watch(*WatchRequest, grpc.ServerStreamingServer[WatchResponse]) error
// contains filtered or unexported methods
}
ScopeServiceServer is the server API for ScopeService service. All implementations must embed UnimplementedScopeServiceServer for forward compatibility.
type ScopeService_WatchClient ¶
type ScopeService_WatchClient = grpc.ServerStreamingClient[WatchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type ScopeService_WatchServer ¶
type ScopeService_WatchServer = grpc.ServerStreamingServer[WatchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedScopeServiceServer ¶
type UnimplementedScopeServiceServer struct{}
UnimplementedScopeServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedScopeServiceServer) Watch ¶
func (UnimplementedScopeServiceServer) Watch(*WatchRequest, grpc.ServerStreamingServer[WatchResponse]) error
type UnsafeScopeServiceServer ¶
type UnsafeScopeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeScopeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ScopeServiceServer will result in compilation errors.
type WatchRequest ¶
type WatchRequest struct {
// contains filtered or unexported fields
}
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) ProtoReflect ¶
func (x *WatchRequest) ProtoReflect() protoreflect.Message
func (*WatchRequest) Reset ¶
func (x *WatchRequest) Reset()
func (*WatchRequest) String ¶
func (x *WatchRequest) String() string
type WatchResponse ¶
type WatchResponse struct {
Event *QueryEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
// contains filtered or unexported fields
}
func (*WatchResponse) Descriptor
deprecated
func (*WatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.
func (*WatchResponse) GetEvent ¶
func (x *WatchResponse) GetEvent() *QueryEvent
func (*WatchResponse) ProtoMessage ¶
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) ProtoReflect ¶
func (x *WatchResponse) ProtoReflect() protoreflect.Message
func (*WatchResponse) Reset ¶
func (x *WatchResponse) Reset()
func (*WatchResponse) String ¶
func (x *WatchResponse) String() string