2025-11-19 18:36:37 +00:00
|
|
|
//go:build lint
|
|
|
|
|
|
|
|
|
|
package sds
|
|
|
|
|
|
2025-12-22 16:45:14 +00:00
|
|
|
import (
|
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
|
|
"go.uber.org/zap"
|
|
|
|
|
)
|
2025-11-19 18:36:37 +00:00
|
|
|
|
|
|
|
|
// This file provides lint-only stubs that avoid requiring libsds.h/cgo
|
|
|
|
|
// so linters can analyze this package without native dependencies.
|
|
|
|
|
|
|
|
|
|
// ErrLintBuild indicates a stubbed, lint-only build without native libsds.
|
|
|
|
|
var ErrLintBuild = errors.New("sds: lint-only build stub: native libsds not linked")
|
|
|
|
|
|
|
|
|
|
// NewReliabilityManager returns an error in lint builds.
|
2025-12-22 16:45:14 +00:00
|
|
|
func NewReliabilityManager(logger *zap.Logger) (*ReliabilityManager, error) {
|
|
|
|
|
return nil, ErrLintBuild
|
2025-11-19 18:36:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Cleanup returns an error in lint builds.
|
|
|
|
|
func (rm *ReliabilityManager) Cleanup() error { return ErrLintBuild }
|
|
|
|
|
|
|
|
|
|
// Reset returns an error in lint builds.
|
|
|
|
|
func (rm *ReliabilityManager) Reset() error { return ErrLintBuild }
|
|
|
|
|
|
|
|
|
|
// WrapOutgoingMessage returns an error in lint builds.
|
|
|
|
|
func (rm *ReliabilityManager) WrapOutgoingMessage(message []byte, messageId MessageID, channelId string) ([]byte, error) {
|
2025-12-22 16:45:14 +00:00
|
|
|
return nil, ErrLintBuild
|
2025-11-19 18:36:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnwrapReceivedMessage returns an error in lint builds.
|
|
|
|
|
func (rm *ReliabilityManager) UnwrapReceivedMessage(message []byte) (*UnwrappedMessage, error) {
|
2025-12-22 16:45:14 +00:00
|
|
|
return nil, ErrLintBuild
|
2025-11-19 18:36:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MarkDependenciesMet returns an error in lint builds.
|
2025-12-22 16:45:14 +00:00
|
|
|
func (rm *ReliabilityManager) MarkDependenciesMet(messageIDs []MessageID, channelId string) error {
|
|
|
|
|
return ErrLintBuild
|
|
|
|
|
}
|
2025-11-19 18:36:37 +00:00
|
|
|
|
|
|
|
|
// StartPeriodicTasks returns an error in lint builds.
|
|
|
|
|
func (rm *ReliabilityManager) StartPeriodicTasks() error { return ErrLintBuild }
|