Documentation
¶
Index ¶
- Variables
- func CleanupLogs(app core.App) error
- type Config
- type IngestResult
- type LogEntry
- type LoggingStats
- type Service
- func (s *Service) FindByID(id string) (*logmodels.Log, error)
- func (s *Service) GetStats() LoggingStats
- func (s *Service) IngestLogs(ctx context.Context, projectId string, entries []LogEntry) (*IngestResult, error)
- func (s *Service) List(query string, fieldResolver *search.SimpleFieldResolver) (*search.Result, error)
- func (s *Service) Shutdown(ctx context.Context) error
- func (s *Service) Stats(expr dbx.Expression) ([]*daos.LogsStatsItem, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Descriptor = servicebase.Descriptor{ Name: "log", Purpose: "Provides system log read-side APIs plus project app-log ingest, batching, retention cleanup and stats.", Dependencies: []string{ "core.App", "services/base/models", "tools/search", }, Operations: []string{ "List", "Stats", "FindByID", "IngestLogs", "Shutdown", "GetStats", }, }
Functions ¶
func CleanupLogs ¶
Types ¶
type Config ¶
type Config struct {
BatchSize int
FlushInterval time.Duration
BufferSize int
WorkerPoolSize int
RetryAttempts int
RetryBackoff time.Duration
}
func DefaultConfig ¶
func DefaultConfig() *Config
type IngestResult ¶
type LoggingStats ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetStats ¶
func (s *Service) GetStats() LoggingStats
func (*Service) IngestLogs ¶
func (*Service) Stats ¶
func (s *Service) Stats(expr dbx.Expression) ([]*daos.LogsStatsItem, error)
Directories
¶
| Path | Synopsis |
|---|---|
|
Package forms contains log service request and submit forms.
|
Package forms contains log service request and submit forms. |
|
Package queries contains read-side query helpers for the log service.
|
Package queries contains read-side query helpers for the log service. |
Click to show internal directories.
Click to hide internal directories.