nativemodel_unix.go 762 B

1234567891011121314151617181920212223242526272829
  1. // +build !windows,!darwin
  2. package protocol
  3. // Normal Unixes uses NFC and slashes, which is the wire format.
  4. type nativeModel struct {
  5. next Model
  6. }
  7. func (m nativeModel) Index(nodeID string, repo string, files []FileInfo) {
  8. m.next.Index(nodeID, repo, files)
  9. }
  10. func (m nativeModel) IndexUpdate(nodeID string, repo string, files []FileInfo) {
  11. m.next.IndexUpdate(nodeID, repo, files)
  12. }
  13. func (m nativeModel) Request(nodeID, repo string, name string, offset int64, size int) ([]byte, error) {
  14. return m.next.Request(nodeID, repo, name, offset, size)
  15. }
  16. func (m nativeModel) ClusterConfig(nodeID string, config ClusterConfigMessage) {
  17. m.next.ClusterConfig(nodeID, config)
  18. }
  19. func (m nativeModel) Close(nodeID string, err error) {
  20. m.next.Close(nodeID, err)
  21. }