logs_service

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogsService

type LogsService struct {
	// contains filtered or unexported fields
}

Integrate logs management with internal permissions and kubernetes RBAC

func NewLogsService

func NewLogsService(repo repositories.RepositoriesInterface, k8sClient *k8s.KubeClient, lokiQuerier *loki.LokiLogQuerier) *LogsService

func (*LogsService) QueryLogs

func (self *LogsService) QueryLogs(ctx context.Context, requesterUserID uuid.UUID, input *models.LogQueryInput) ([]loki.LogEvent, error)

func (*LogsService) StreamLogs

func (self *LogsService) StreamLogs(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, input *models.LogStreamInput, send sse.Sender) error

Jump to

Keyboard shortcuts

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