logs

package
v0.2.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTeamQueryNotFound is returned when a team query cannot be found
	ErrTeamQueryNotFound = errors.New("team query not found")
)

Common errors for the logs package

Functions

This section is empty.

Types

type ValidationError

type ValidationError struct {
	Field   string
	Message string
}

ValidationError represents a validation error

func (*ValidationError) Error

func (e *ValidationError) Error() string

type Validator

type Validator struct{}

Validator provides validation logic for log operations

func NewValidator

func NewValidator() *Validator

NewValidator creates a new logs validator

func (*Validator) ValidateLogContextRequest

func (v *Validator) ValidateLogContextRequest(req *models.LogContextRequest) error

ValidateLogContextRequest validates a log context request

func (*Validator) ValidateLogQueryRequest

func (v *Validator) ValidateLogQueryRequest(req *models.LogQueryRequest) error

ValidateLogQueryRequest validates a log query request

Jump to

Keyboard shortcuts

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