Documentation ¶
Index ¶
- type Config
- type EventStore
- type Server
- func (s *Server) Close()
- func (s *Server) GetTSO(ctx context.Context, req *pb.GetTSORequest) (*pb.GetTSOResponse, error)
- func (s *Server) Start() error
- func (s *Server) UploadSyncerBinlogEvent(ctx context.Context, req *pb.UploadSyncerBinlogEventRequest) (*pb.CommonUploadResponse, error)
- func (s *Server) UploadSyncerJobEvent(ctx context.Context, req *pb.UploadSyncerJobEventRequest) (*pb.CommonUploadResponse, error)
- type TraceEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogLevel string `toml:"log-level" json:"log-level"` LogFile string `toml:"log-file" json:"log-file"` TracerAddr string `toml:"tracer-addr" json:"tracer-addr"` Enable bool `toml:"enable" json:"enable"` Checksum bool `toml:"checksum" json:"checksum"` ConfigFile string `json:"config-file"` // contains filtered or unexported fields }
Config is the configuration.
type EventStore ¶
EventStore stores all tracing events, mapping from TraceID -> a list of TraceEvent TraceEvents with the same TraceID can have different TraceType NOTE: this is a quick and dirty implement, we will refactor it later
type Server ¶
Server accepts tracing RPC requests and sends RPC responses back
func (*Server) GetTSO ¶
func (s *Server) GetTSO(ctx context.Context, req *pb.GetTSORequest) (*pb.GetTSOResponse, error)
GetTSO implements TracerServer.GetTSO
func (*Server) UploadSyncerBinlogEvent ¶
func (s *Server) UploadSyncerBinlogEvent(ctx context.Context, req *pb.UploadSyncerBinlogEventRequest) (*pb.CommonUploadResponse, error)
UploadSyncerBinlogEvent implements TracerServer.UploadSyncerBinlogEvent
func (*Server) UploadSyncerJobEvent ¶
func (s *Server) UploadSyncerJobEvent(ctx context.Context, req *pb.UploadSyncerJobEventRequest) (*pb.CommonUploadResponse, error)
UploadSyncerJobEvent implements TracerServer.UploadSyncerJobEvent
type TraceEvent ¶
TraceEvent represents a sigle tracing event
Click to show internal directories.
Click to hide internal directories.