Documentation ¶
Index ¶
- type Handler
- func (h *Handler) AggregatedLogs(req *proto.TimeRangeRequest, stream proto.LogRecorder_AggregatedLogsServer) error
- func (h *Handler) DeleteLogs(ctx context.Context, req *proto.ListLogRequest) (*proto.DeleteLogsResponse, error)
- func (h *Handler) ListLogs(req *proto.ListLogRequest, stream proto.LogRecorder_ListLogsServer) error
- func (h *Handler) Name() string
- func (h *Handler) OneLog(ctx context.Context, line *proto.Log) error
- func (h *Handler) PutLog(stream proto.LogRecorder_PutLogServer) error
- func (h *Handler) TriggerResync(ctx context.Context, request *sync.ResyncRequest) (*sync.ResyncResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { sync.UnimplementedSyncEndpointServer proto.UnimplementedLogRecorderServer HandlerName string ResolveOptions []manager.ResolveOption }
Handler is the gRPC interface for the log service.
func (*Handler) AggregatedLogs ¶
func (h *Handler) AggregatedLogs(req *proto.TimeRangeRequest, stream proto.LogRecorder_AggregatedLogsServer) error
AggregatedLogs retrieves aggregated figures from the indexer to generate charts and reports.
func (*Handler) DeleteLogs ¶
func (h *Handler) DeleteLogs(ctx context.Context, req *proto.ListLogRequest) (*proto.DeleteLogsResponse, error)
DeleteLogs removes logs based on a ListLogRequest
func (*Handler) ListLogs ¶
func (h *Handler) ListLogs(req *proto.ListLogRequest, stream proto.LogRecorder_ListLogsServer) error
ListLogs is a simple gateway from protobuf to the indexer search engine.
func (*Handler) PutLog ¶
func (h *Handler) PutLog(stream proto.LogRecorder_PutLogServer) error
PutLog retrieves the log messages from the proto stream and stores them in the index.
func (*Handler) TriggerResync ¶
func (h *Handler) TriggerResync(ctx context.Context, request *sync.ResyncRequest) (*sync.ResyncResponse, error)
TriggerResync uses the request.Path as parameter. If nothing is passed, it reads all the logs from index and reconstructs a new index entirely. If truncate/{int64} is passed, it truncates the log to the given size (or closer)
Click to show internal directories.
Click to hide internal directories.