oktopus/backend/services/mtp/stomp-adapter/internal/stomp/validator.go

22 lines
481 B
Go

package stomp
import (
"github.com/oktopUSP/oktopus/backend/services/mtp/stomp-adapter/internal/stomp/frame"
)
// Validator is an interface for validating STOMP frames.
type Validator interface {
// Validate returns nil if the frame is valid, or an error if not valid.
Validate(f *frame.Frame) error
}
func NewValidator(version Version) Validator {
return validatorNull{}
}
type validatorNull struct{}
func (v validatorNull) Validate(f *frame.Frame) error {
return nil
}