Documentation ¶
Index ¶
- Variables
- func RegisterProfileTaskServer(s grpc.ServiceRegistrar, srv ProfileTaskServer)
- type ProfileTaskClient
- type ProfileTaskServer
- type ProfileTask_CollectSnapshotClient
- type ProfileTask_CollectSnapshotServer
- type UnimplementedProfileTaskServer
- func (UnimplementedProfileTaskServer) CollectSnapshot(ProfileTask_CollectSnapshotServer) error
- func (UnimplementedProfileTaskServer) GetProfileTaskCommands(context.Context, *v3.ProfileTaskCommandQuery) (*v31.Commands, error)
- func (UnimplementedProfileTaskServer) ReportTaskFinish(context.Context, *v3.ProfileTaskFinishReport) (*v31.Commands, error)
- type UnsafeProfileTaskServer
Constants ¶
This section is empty.
Variables ¶
var File_profile_ProfileCompat_proto protoreflect.FileDescriptor
var ProfileTask_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ProfileTask", HandlerType: (*ProfileTaskServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getProfileTaskCommands", Handler: _ProfileTask_GetProfileTaskCommands_Handler, }, { MethodName: "reportTaskFinish", Handler: _ProfileTask_ReportTaskFinish_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "collectSnapshot", Handler: _ProfileTask_CollectSnapshot_Handler, ClientStreams: true, }, }, Metadata: "profile/ProfileCompat.proto", }
ProfileTask_ServiceDesc is the grpc.ServiceDesc for ProfileTask service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProfileTaskServer ¶
func RegisterProfileTaskServer(s grpc.ServiceRegistrar, srv ProfileTaskServer)
Types ¶
type ProfileTaskClient ¶
type ProfileTaskClient interface { // query all sniffer need to execute profile task commands GetProfileTaskCommands(ctx context.Context, in *v3.ProfileTaskCommandQuery, opts ...grpc.CallOption) (*v31.Commands, error) // collect dumped thread snapshot CollectSnapshot(ctx context.Context, opts ...grpc.CallOption) (ProfileTask_CollectSnapshotClient, error) // report profiling task finished ReportTaskFinish(ctx context.Context, in *v3.ProfileTaskFinishReport, opts ...grpc.CallOption) (*v31.Commands, error) }
ProfileTaskClient is the client API for ProfileTask 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 NewProfileTaskClient ¶
func NewProfileTaskClient(cc grpc.ClientConnInterface) ProfileTaskClient
type ProfileTaskServer ¶
type ProfileTaskServer interface { // query all sniffer need to execute profile task commands GetProfileTaskCommands(context.Context, *v3.ProfileTaskCommandQuery) (*v31.Commands, error) // collect dumped thread snapshot CollectSnapshot(ProfileTask_CollectSnapshotServer) error // report profiling task finished ReportTaskFinish(context.Context, *v3.ProfileTaskFinishReport) (*v31.Commands, error) }
ProfileTaskServer is the server API for ProfileTask service. All implementations should embed UnimplementedProfileTaskServer for forward compatibility
type ProfileTask_CollectSnapshotClient ¶
type ProfileTask_CollectSnapshotClient interface { Send(*v3.ThreadSnapshot) error CloseAndRecv() (*v31.Commands, error) grpc.ClientStream }
type ProfileTask_CollectSnapshotServer ¶
type ProfileTask_CollectSnapshotServer interface { SendAndClose(*v31.Commands) error Recv() (*v3.ThreadSnapshot, error) grpc.ServerStream }
type UnimplementedProfileTaskServer ¶
type UnimplementedProfileTaskServer struct { }
UnimplementedProfileTaskServer should be embedded to have forward compatible implementations.
func (UnimplementedProfileTaskServer) CollectSnapshot ¶
func (UnimplementedProfileTaskServer) CollectSnapshot(ProfileTask_CollectSnapshotServer) error
func (UnimplementedProfileTaskServer) GetProfileTaskCommands ¶
func (UnimplementedProfileTaskServer) GetProfileTaskCommands(context.Context, *v3.ProfileTaskCommandQuery) (*v31.Commands, error)
func (UnimplementedProfileTaskServer) ReportTaskFinish ¶
func (UnimplementedProfileTaskServer) ReportTaskFinish(context.Context, *v3.ProfileTaskFinishReport) (*v31.Commands, error)
type UnsafeProfileTaskServer ¶
type UnsafeProfileTaskServer interface {
// contains filtered or unexported methods
}
UnsafeProfileTaskServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileTaskServer will result in compilation errors.