Documentation
¶
Index ¶
- type Loggers
- type Server
- func (s *Server) Capture(request *machinapb.CaptureRequest, server machinapb.GoPprof_CaptureServer) error
- func (s *Server) Events(stream machinapb.Machina_EventsServer) error
- func (s *Server) GetExecutable(req *machinapb.GetExecutableRequest, ...) error
- func (s *Server) MachinaInfo(req *machinapb.MachinaInfoRequest, stream machinapb.Machina_MachinaInfoServer) error
- func (s *Server) Snapshot(stream machinapb.Machina_SnapshotServer) (err error)
- func (s *Server) WatchProcesses(req *machinapb.WatchProcessesRequest, ...) error
- type SnapshotFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { machinapb.UnimplementedMachinaServer machinapb.UnimplementedGoPprofServer // contains filtered or unexported fields }
Server implements the machinapb.MachinaServer interface.
func NewServer ¶
func NewServer( agentFingerprint uuid.UUID, processFingerprint string, tenantToken string, environment string, programName string, fetcher SnapshotFetcher, ephemeralProcess bool, loggers Loggers, ) *Server
NewServer constructs a new Server object.
func (*Server) Capture ¶
func (s *Server) Capture(request *machinapb.CaptureRequest, server machinapb.GoPprof_CaptureServer) error
Capture implements machinapb.GoPprofServer interface.
func (*Server) GetExecutable ¶
func (s *Server) GetExecutable(req *machinapb.GetExecutableRequest, stream machinapb.Machina_GetExecutableServer) error
GetExecutable implements machinapb.MachinaServer.
func (*Server) MachinaInfo ¶
func (s *Server) MachinaInfo(req *machinapb.MachinaInfoRequest, stream machinapb.Machina_MachinaInfoServer) error
MachinaInfo implements machinapb.MachinaServer.
func (*Server) Snapshot ¶
func (s *Server) Snapshot(stream machinapb.Machina_SnapshotServer) (err error)
Snapshot implements machinapb.MachinaServer.
func (*Server) WatchProcesses ¶
func (s *Server) WatchProcesses(req *machinapb.WatchProcessesRequest, watchServer machinapb.Machina_WatchProcessesServer) error
WatchProcesses implements machinapb.MachinaServer.
The request proto is ignored. The current process is reported unconditionally, with the configured program name. Other processes are not reported.
type SnapshotFetcher ¶
type SnapshotFetcher interface {
FetchSnapshotProgram(ctx context.Context, key string) (*snapshotpb.SnapshotProgram, error)
}
func NewSnapshotFetcher ¶
func NewSnapshotFetcher( artifacts artifactspb.ArtifactStoreClient, ) SnapshotFetcher
Click to show internal directories.
Click to hide internal directories.