| 1234567891011121314151617181920212223 |
- package thermalbackend
- import (
- "context"
- "errors"
- "hth/internal/protocol6400"
- )
- var ErrReadOnly = errors.New("thermal replay backend is read-only")
- // Backend is the sole transaction surface used by the 6400 daemon path.
- // Implementations must serialize calls; the service also serializes them so a
- // single CPLD wire transaction is outstanding across all RPCs.
- type Backend interface {
- Kind() string
- Profile() string
- Open(context.Context) error
- Close() error
- SetTarget(context.Context, byte) error
- GetSnapshot(context.Context) (protocol6400.Snapshot, []byte, error)
- RunStimulus(context.Context, protocol6400.Stimulus) error
- }
|