~rbn/neinp

062a107b140085acd6c48867e4328fb3f3466a87 — Ruben Schuller 1 year, 2 months ago 280ca11 v0.0.2
use custom go.rbn.im import path
M README.md => README.md +2 -2
@@ 1,12 1,12 @@
# neinp
[![GoDoc](https://godoc.org/git.sr.ht/rbn/neinp?status.svg)](https://godoc.org/git.sr.ht/rbn/neinp)
[![GoDoc](https://godoc.org/go.rbn.im/neinp?status.svg)](https://godoc.org/go.rbn.im/neinp)

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

## installation

	go get git.sr.ht/rbn/neinp
	go get go.rbn.im/neinp

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

M basic/basic.go => basic/basic.go +1 -1
@@ 1,5 1,5 @@
//Package basic handles en-/decoding of basic types to 9p wire format.
package basic
package basic // import "go.rbn.im/neinp/basic"

import (
	"io"

M basic/basic_test.go => basic/basic_test.go +1 -1
@@ 1,4 1,4 @@
package basic
package basic // import "go.rbn.im/neinp/basic"

import (
	"bytes"

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

import (
	"git.sr.ht/~rbn/neinp"
	"go.rbn.im/neinp"
	"fmt"
	"net"
)

M fid/fid.go => fid/fid.go +1 -1
@@ 1,4 1,4 @@
//Package fid supplies a fid type and the usual mutexed map for storing them.
package fid
package fid // import "go.rbn.im/neinp/fid"

type Fid uint32

M fid/map.go => fid/map.go +1 -1
@@ 1,4 1,4 @@
package fid
package fid // import "go.rbn.im/neinp/fid"

import (
	"sync"

M fs/entry.go => fs/entry.go +4 -4
@@ 1,10 1,10 @@
/*Package fs provides helpers to implement 9p objects: directories and files.*/
package fs
package fs // import "go.rbn.im/neinp/fs"

import (
	"git.sr.ht/~rbn/neinp/message"
	"git.sr.ht/~rbn/neinp/qid"
	"git.sr.ht/~rbn/neinp/stat"
	"go.rbn.im/neinp/message"
	"go.rbn.im/neinp/qid"
	"go.rbn.im/neinp/stat"
	"errors"
	"io"
)

M go.mod => go.mod +1 -1
@@ 1,3 1,3 @@
module git.sr.ht/~rbn/neinp
module go.rbn.im/neinp

go 1.12

M id/uidgid.go => id/uidgid.go +1 -1
@@ 1,5 1,5 @@
// Package id provides utility functions to convert unix uid/gid to strings.
package id
package id // import "go.rbn.im/neinp/id"

import (
	"os/user"

M message/attach.go => message/attach.go +4 -4
@@ 1,9 1,9 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/qid"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/fid"
	"go.rbn.im/neinp/qid"
	"io"
)


M message/attach_test.go => message/attach_test.go +2 -2
@@ 1,7 1,7 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/qid"
	"go.rbn.im/neinp/qid"
	"bytes"
	"testing"
)

M message/auth.go => message/auth.go +4 -4
@@ 1,9 1,9 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/qid"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/fid"
	"go.rbn.im/neinp/qid"
	"io"
)


M message/auth_test.go => message/auth_test.go +2 -2
@@ 1,7 1,7 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/qid"
	"go.rbn.im/neinp/qid"
	"bytes"
	"testing"
)

M message/clunk.go => message/clunk.go +3 -3
@@ 1,8 1,8 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/fid"
	"io"
)


M message/clunk_test.go => message/clunk_test.go +1 -1
@@ 1,4 1,4 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"bytes"

M message/consts.go => message/consts.go +1 -1
@@ 1,4 1,4 @@
package message
package message // import "go.rbn.im/neinp/message"

type messageType uint8


M message/create.go => message/create.go +4 -4
@@ 1,9 1,9 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/qid"
	"git.sr.ht/~rbn/neinp/stat"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/qid"
	"go.rbn.im/neinp/stat"
	"io"
)


M message/create_test.go => message/create_test.go +2 -2
@@ 1,7 1,7 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/qid"
	"go.rbn.im/neinp/qid"
	"bytes"
	"testing"
)

M message/doc.go => message/doc.go +1 -1
@@ 1,4 1,4 @@
/*Package message contains types for 9p messages.

The types defined here can encode/decode themselves to the 9p wire representation.*/
package message
package message // import "go.rbn.im/neinp/message"

M message/error.go => message/error.go +2 -2
@@ 1,7 1,7 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"go.rbn.im/neinp/basic"
	"io"
)


M message/error_test.go => message/error_test.go +1 -1
@@ 1,4 1,4 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"bytes"

M message/flush.go => message/flush.go +2 -2
@@ 1,7 1,7 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"go.rbn.im/neinp/basic"
	"io"
)


M message/flush_test.go => message/flush_test.go +1 -1
@@ 1,4 1,4 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"bytes"

M message/message.go => message/message.go +2 -2
@@ 1,7 1,7 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"go.rbn.im/neinp/basic"
	"bytes"
	"fmt"
	"io"

M message/message_test.go => message/message_test.go +1 -1
@@ 1,4 1,4 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"bytes"

M message/open.go => message/open.go +4 -4
@@ 1,9 1,9 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/qid"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/fid"
	"go.rbn.im/neinp/qid"
	"io"
	"os"
)

M message/open_test.go => message/open_test.go +2 -2
@@ 1,7 1,7 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/qid"
	"go.rbn.im/neinp/qid"
	"bytes"
	"testing"
)

M message/read.go => message/read.go +3 -3
@@ 1,8 1,8 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/fid"
	"io"
)


M message/read_test.go => message/read_test.go +1 -1
@@ 1,4 1,4 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"bytes"

M message/remove.go => message/remove.go +3 -3
@@ 1,8 1,8 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/fid"
	"io"
)


M message/remove_test.go => message/remove_test.go +1 -1
@@ 1,4 1,4 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"bytes"

M message/stat.go => message/stat.go +4 -4
@@ 1,9 1,9 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/stat"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/fid"
	"go.rbn.im/neinp/stat"
	"bytes"
	"io"
)

M message/stat_test.go => message/stat_test.go +3 -3
@@ 1,8 1,8 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/qid"
	"git.sr.ht/~rbn/neinp/stat"
	"go.rbn.im/neinp/qid"
	"go.rbn.im/neinp/stat"
	"bytes"
	"testing"
	"time"

M message/version.go => message/version.go +2 -2
@@ 1,7 1,7 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"go.rbn.im/neinp/basic"
	"io"
)


M message/version_test.go => message/version_test.go +1 -1
@@ 1,4 1,4 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"bytes"

M message/walk.go => message/walk.go +4 -4
@@ 1,9 1,9 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/qid"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/fid"
	"go.rbn.im/neinp/qid"
	"io"
)


M message/walk_test.go => message/walk_test.go +2 -2
@@ 1,7 1,7 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/qid"
	"go.rbn.im/neinp/qid"
	"bytes"
	"strings"
	"testing"

M message/write.go => message/write.go +3 -3
@@ 1,8 1,8 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/fid"
	"io"
)


M message/write_test.go => message/write_test.go +1 -1
@@ 1,4 1,4 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"bytes"

M message/wstat.go => message/wstat.go +4 -4
@@ 1,9 1,9 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/fid"
	"git.sr.ht/~rbn/neinp/stat"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/fid"
	"go.rbn.im/neinp/stat"
	"bytes"
	"io"
)

M message/wstat_test.go => message/wstat_test.go +3 -3
@@ 1,8 1,8 @@
package message
package message // import "go.rbn.im/neinp/message"

import (
	"git.sr.ht/~rbn/neinp/qid"
	"git.sr.ht/~rbn/neinp/stat"
	"go.rbn.im/neinp/qid"
	"go.rbn.im/neinp/stat"
	"bytes"
	"testing"
	"time"

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

import (
	"git.sr.ht/~rbn/neinp/message"
	"go.rbn.im/neinp/message"
	"context"
	"errors"
)

M qid/consts.go => qid/consts.go +1 -1
@@ 1,4 1,4 @@
package qid
package qid // import "go.rbn.im/neinp/qid"

//Type represents the type this qid symbolizes.
type Type uint8

M qid/fileinfo.go => qid/fileinfo.go +1 -1
@@ 1,4 1,4 @@
package qid
package qid // import "go.rbn.im/neinp/qid"

import (
	"hash/fnv"

M qid/qid.go => qid/qid.go +2 -2
@@ 1,8 1,8 @@
//Package qid provides the qid type and supporting functionality.
package qid
package qid // import "go.rbn.im/neinp/qid"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"go.rbn.im/neinp/basic"
	"io"
)


M qid/qid_test.go => qid/qid_test.go +1 -1
@@ 1,4 1,4 @@
package qid
package qid // import "go.rbn.im/neinp/qid"

import (
	"bytes"

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

import (
	"git.sr.ht/~rbn/neinp/message"
	"go.rbn.im/neinp/message"
	"context"
	"fmt"
	"io"

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

import (
	"git.sr.ht/~rbn/neinp/message"
	"go.rbn.im/neinp/message"
	"bytes"
	"context"
	"io"

M stat/consts.go => stat/consts.go +1 -1
@@ 1,4 1,4 @@
package stat
package stat // import "go.rbn.im/neinp/stat"

import (
	"os"

M stat/fileinfo.go => stat/fileinfo.go +2 -2
@@ 1,7 1,7 @@
package stat
package stat // import "go.rbn.im/neinp/stat"

import (
	"git.sr.ht/~rbn/neinp/qid"
	"go.rbn.im/neinp/qid"
	"os"
	"os/user"
	"strconv"

M stat/reader.go => stat/reader.go +1 -1
@@ 1,4 1,4 @@
package stat
package stat // import "go.rbn.im/neinp/stat"

import (
	"bytes"

M stat/reader_test.go => stat/reader_test.go +1 -1
@@ 1,4 1,4 @@
package stat
package stat // import "go.rbn.im/neinp/stat"

import (
	"bytes"

M stat/stat.go => stat/stat.go +3 -3
@@ 1,9 1,9 @@
//Package stat provides functionality to handle 9p stat values.
package stat
package stat // import "go.rbn.im/neinp/stat"

import (
	"git.sr.ht/~rbn/neinp/basic"
	"git.sr.ht/~rbn/neinp/qid"
	"go.rbn.im/neinp/basic"
	"go.rbn.im/neinp/qid"
	"bytes"
	"io"
	"time"