plugin

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogServer

type LogServer struct {
	pb3.UnimplementedLogsServer

	IsLogPluginEnabled bool
	// contains filtered or unexported fields
}

LogServer is the server for the log plugin server

func NewLogServer

func NewLogServer(config *config.Config, logger *zap.SugaredLogger, auth auth.Checker, db *gorm.DB) (*LogServer, error)

NewLogServer returns a plugin log server

func (*LogServer) GetLog

func (s *LogServer) GetLog(req *pb3.GetLogRequest, srv pb3.Logs_GetLogServer) error

GetLog streams log record by log request

func (*LogServer) LogMux

func (s *LogServer) LogMux() http.Handler

LogMux returns a http.Handler that serves the log plugin server

Jump to

Keyboard shortcuts

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