grpc

package
v2.0.6+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package grpc provides a Pydio GRPC service for querying the logs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Repo log.MessageRepository
}

Handler is the gRPC interface for the log service.

func (*Handler) AggregatedLogs

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, resp *proto.DeleteLogsResponse) error

func (*Handler) ListLogs

ListLogs is a simple gateway from protobuf to the indexer search engine.

func (*Handler) PutLog

func (h *Handler) PutLog(ctx context.Context, stream proto.LogRecorder_PutLogStream) 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, response *sync.ResyncResponse) error

TriggerResync implements SyncEndpointHandler interface by reading all logs from index and reconstructing a new index entirely

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL