Documentation
¶
Index ¶
- Constants
- type Reader
- func (*Reader) CancelWrite()
- func (*Reader) Capabilities() []readers.Capability
- func (r *Reader) Close() error
- func (r *Reader) Connected() bool
- func (r *Reader) Detect(excluded []string) string
- func (r *Reader) IDs() []string
- func (r *Reader) Info() string
- func (r *Reader) Metadata() readers.DriverMetadata
- func (*Reader) OnMediaChange(*models.ActiveMedia) error
- func (r *Reader) Open(device config.ReadersConnect, iq chan<- readers.Scan, _ readers.OpenOpts) error
- func (r *Reader) Path() string
- func (r *Reader) ReaderID() string
- func (*Reader) Write(_ string) (*tokens.Token, error)
- type ReaderOptions
Constants ¶
View Source
const TokenType = "file"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func NewReaderWithOptions ¶ added in v2.16.0
func NewReaderWithOptions(cfg *config.Instance, options *ReaderOptions) *Reader
NewReaderWithOptions creates a file-backed reader with custom driver metadata and detection.
func (*Reader) CancelWrite ¶
func (*Reader) CancelWrite()
func (*Reader) Capabilities ¶
func (*Reader) Capabilities() []readers.Capability
func (*Reader) Metadata ¶
func (r *Reader) Metadata() readers.DriverMetadata
func (*Reader) OnMediaChange ¶
func (*Reader) OnMediaChange(*models.ActiveMedia) error
type ReaderOptions ¶ added in v2.16.0
type ReaderOptions struct {
IsAvailable func() bool
AutoDetectPath string
Metadata readers.DriverMetadata
IDs []string
}
ReaderOptions customizes a file-backed reader for a specific bridge.
Click to show internal directories.
Click to hide internal directories.