~rbn/neinp

55b6eee1e78f053b260d845551ee71f4777448c6 — Ruben Schuller 1 year, 9 months ago b441da6
move to sr.ht and go modulize
A .build.yml => .build.yml +14 -0
@@ 0,0 1,14 @@
image: freebsd
packages:
  - go
sources:
  - https://git.sr.ht/~rbn/neinp
tasks:
  - lib: |
      cd neinp
      go test -v -coverprofile=cover.out ./...
      go tool cover -func=cover.out
triggers:
  - action: email
    condition: always
    to: code@rbn.im

M README.md => README.md +3 -3
@@ 1,15 1,15 @@
# neinp
[![GoDoc](https://godoc.org/github.com/rbns/neinp?status.svg)](https://godoc.org/github.com/rbns/neinp)
[![GoDoc](https://godoc.org/git.sr.ht/rbn/neinp?status.svg)](https://godoc.org/git.sr.ht/rbn/neinp)

## about
neinp is a toolkit to implement 9p servers.

## installation

	go get github.com/rbns/neinp
	go get git.sr.ht/rbn/neinp

## usage
a example of how to use this can be found here: https://github.com/rbns/rssfs
a example of how to use this can be found here: https://git.sr.ht/rbn/rssfs

furthermore, the documentation of this package should cover most things. additional information
about the 9p protocol can be found in the plan9 manual (should be available online at [cat-v.org](http://man.cat-v.org/plan_9/5/) for example).

M example_server_test.go => example_server_test.go +1 -1
@@ 1,7 1,7 @@
package neinp_test

import (
	"github.com/rbns/neinp"
	"git.sr.ht/~rbn/neinp"
	"fmt"
	"net"
)

M fs/entry.go => fs/entry.go +3 -3
@@ 2,9 2,9 @@
package fs

import (
	"github.com/rbns/neinp/message"
	"github.com/rbns/neinp/qid"
	"github.com/rbns/neinp/stat"
	"git.sr.ht/~rbn/neinp/message"
	"git.sr.ht/~rbn/neinp/qid"
	"git.sr.ht/~rbn/neinp/stat"
	"errors"
	"io"
)

A go.mod => go.mod +1 -0
@@ 0,0 1,1 @@
module git.sr.ht/~rbn/neinp

M message/attach.go => message/attach.go +3 -3
@@ 1,9 1,9 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/fid"
	"github.com/rbns/neinp/qid"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/qid"
	"io"
)


M message/attach_test.go => message/attach_test.go +1 -1
@@ 1,7 1,7 @@
package message

import (
	"github.com/rbns/neinp/qid"
	"git.sr.ht/~rbn/neinp/qid"
	"bytes"
	"testing"
)

M message/auth.go => message/auth.go +3 -3
@@ 1,9 1,9 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/fid"
	"github.com/rbns/neinp/qid"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/qid"
	"io"
)


M message/auth_test.go => message/auth_test.go +1 -1
@@ 1,7 1,7 @@
package message

import (
	"github.com/rbns/neinp/qid"
	"git.sr.ht/~rbn/neinp/qid"
	"bytes"
	"testing"
)

M message/clunk.go => message/clunk.go +2 -2
@@ 1,8 1,8 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/fid"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"io"
)


M message/create.go => message/create.go +3 -3
@@ 1,9 1,9 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/qid"
	"github.com/rbns/neinp/stat"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/qid"
	"git.sr.ht/~rbn/neinp/stat"
	"io"
)


M message/create_test.go => message/create_test.go +1 -1
@@ 1,7 1,7 @@
package message

import (
	"github.com/rbns/neinp/qid"
	"git.sr.ht/~rbn/neinp/qid"
	"bytes"
	"testing"
)

M message/error.go => message/error.go +1 -1
@@ 1,7 1,7 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"git.sr.ht/~rbn/neinp/basic"
	"io"
)


M message/flush.go => message/flush.go +1 -1
@@ 1,7 1,7 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"git.sr.ht/~rbn/neinp/basic"
	"io"
)


M message/message.go => message/message.go +1 -1
@@ 1,7 1,7 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"git.sr.ht/~rbn/neinp/basic"
	"bytes"
	"fmt"
	"io"

M message/open.go => message/open.go +3 -3
@@ 1,9 1,9 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/fid"
	"github.com/rbns/neinp/qid"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/qid"
	"io"
	"os"
)

M message/open_test.go => message/open_test.go +1 -1
@@ 1,7 1,7 @@
package message

import (
	"github.com/rbns/neinp/qid"
	"git.sr.ht/~rbn/neinp/qid"
	"bytes"
	"testing"
)

M message/read.go => message/read.go +2 -2
@@ 1,8 1,8 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/fid"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"io"
)


M message/remove.go => message/remove.go +2 -2
@@ 1,8 1,8 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/fid"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"io"
)


M message/stat.go => message/stat.go +3 -3
@@ 1,9 1,9 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/fid"
	"github.com/rbns/neinp/stat"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/stat"
	"bytes"
	"io"
)

M message/stat_test.go => message/stat_test.go +2 -2
@@ 1,8 1,8 @@
package message

import (
	"github.com/rbns/neinp/qid"
	"github.com/rbns/neinp/stat"
	"git.sr.ht/~rbn/neinp/qid"
	"git.sr.ht/~rbn/neinp/stat"
	"bytes"
	"testing"
	"time"

M message/version.go => message/version.go +1 -1
@@ 1,7 1,7 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"git.sr.ht/~rbn/neinp/basic"
	"io"
)


M message/walk.go => message/walk.go +3 -3
@@ 1,9 1,9 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/fid"
	"github.com/rbns/neinp/qid"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/qid"
	"io"
)


M message/walk_test.go => message/walk_test.go +1 -1
@@ 1,7 1,7 @@
package message

import (
	"github.com/rbns/neinp/qid"
	"git.sr.ht/~rbn/neinp/qid"
	"bytes"
	"strings"
	"testing"

M message/write.go => message/write.go +2 -2
@@ 1,8 1,8 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/fid"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"io"
)


M message/wstat.go => message/wstat.go +3 -3
@@ 1,9 1,9 @@
package message

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/fid"
	"github.com/rbns/neinp/stat"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/stat"
	"bytes"
	"io"
)

M message/wstat_test.go => message/wstat_test.go +2 -2
@@ 1,8 1,8 @@
package message

import (
	"github.com/rbns/neinp/qid"
	"github.com/rbns/neinp/stat"
	"git.sr.ht/~rbn/neinp/qid"
	"git.sr.ht/~rbn/neinp/stat"
	"bytes"
	"testing"
	"time"

M nopfs.go => nopfs.go +1 -1
@@ 1,7 1,7 @@
package neinp

import (
	"github.com/rbns/neinp/message"
	"git.sr.ht/~rbn/neinp/message"
	"context"
	"errors"
)

M qid/qid.go => qid/qid.go +1 -1
@@ 2,7 2,7 @@
package qid

import (
	"github.com/rbns/neinp/basic"
	"git.sr.ht/~rbn/neinp/basic"
	"io"
)


M server.go => server.go +1 -1
@@ 1,7 1,7 @@
package neinp

import (
	"github.com/rbns/neinp/message"
	"git.sr.ht/~rbn/neinp/message"
	"context"
	"fmt"
	"io"

M server_test.go => server_test.go +1 -1
@@ 1,7 1,7 @@
package neinp

import (
	"github.com/rbns/neinp/message"
	"git.sr.ht/~rbn/neinp/message"
	"bytes"
	"context"
	"io"

M stat/fileinfo.go => stat/fileinfo.go +1 -1
@@ 1,7 1,7 @@
package stat

import (
	"github.com/rbns/neinp/qid"
	"git.sr.ht/~rbn/neinp/qid"
	"os"
	"os/user"
	"strconv"

M stat/stat.go => stat/stat.go +2 -2
@@ 2,8 2,8 @@
package stat

import (
	"github.com/rbns/neinp/basic"
	"github.com/rbns/neinp/qid"
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/qid"
	"bytes"
	"io"
	"time"