Commit a7bde37f authored by Stijn Meijer's avatar Stijn Meijer
Browse files

Fork imports

parent f8fb11f8
......@@ -8,16 +8,16 @@ can be guessed from the name, it only works on Windows.
Full `go doc` style documentation for the project can be viewed online without
installing this package by using the GoDoc site here:
http://godoc.org/github.com/btcsuite/winsvc
http://godoc.org/gitlab.science.ru.nl/stijnmeijer/winsvc
You can also view the documentation locally once the package is installed with
the `godoc` tool by running `godoc -http=":6060"` and pointing your browser to
http://localhost:6060/pkg/github.com/btcsuite/winsvc
http://localhost:6060/pkg/gitlab.science.ru.nl/stijnmeijer/winsvc
## Installation
```bash
$ go get github.com/btcsuite/winsvc
$ go get gitlab.science.ru.nl/stijnmeijer/winsvc
```
## License
......
......@@ -13,7 +13,7 @@ import (
"os/signal"
"syscall"
"github.com/btcsuite/winsvc/svc"
"gitlab.science.ru.nl/stijnmeijer/winsvc/svc"
)
// Run executes service named name by calling appropriate handler function.
......
......@@ -10,8 +10,8 @@ import (
"errors"
"syscall"
"github.com/btcsuite/winsvc/registry"
"github.com/btcsuite/winsvc/winapi"
"gitlab.science.ru.nl/stijnmeijer/winsvc/registry"
"gitlab.science.ru.nl/stijnmeijer/winsvc/winapi"
)
const (
......
......@@ -12,7 +12,7 @@ import (
"errors"
"syscall"
"github.com/btcsuite/winsvc/winapi"
"gitlab.science.ru.nl/stijnmeijer/winsvc/winapi"
)
// Log provides access to system log.
......
......@@ -9,7 +9,7 @@ package eventlog_test
import (
"testing"
"github.com/btcsuite/winsvc/eventlog"
"gitlab.science.ru.nl/stijnmeijer/winsvc/eventlog"
)
func TestLog(t *testing.T) {
......
......@@ -11,8 +11,8 @@ import (
"os"
"path/filepath"
"github.com/btcsuite/winsvc/eventlog"
"github.com/btcsuite/winsvc/mgr"
"gitlab.science.ru.nl/stijnmeijer/winsvc/eventlog"
"gitlab.science.ru.nl/stijnmeijer/winsvc/mgr"
)
func exePath() (string, error) {
......
......@@ -18,7 +18,7 @@ import (
"os"
"strings"
"github.com/btcsuite/winsvc/svc"
"gitlab.science.ru.nl/stijnmeijer/winsvc/svc"
)
func usage(errmsg string) {
......
......@@ -10,8 +10,8 @@ import (
"fmt"
"time"
"github.com/btcsuite/winsvc/mgr"
"github.com/btcsuite/winsvc/svc"
"gitlab.science.ru.nl/stijnmeijer/winsvc/mgr"
"gitlab.science.ru.nl/stijnmeijer/winsvc/svc"
)
func startService(name string) error {
......
......@@ -10,9 +10,9 @@ import (
"fmt"
"time"
"github.com/btcsuite/winsvc/debug"
"github.com/btcsuite/winsvc/eventlog"
"github.com/btcsuite/winsvc/svc"
"gitlab.science.ru.nl/stijnmeijer/winsvc/debug"
"gitlab.science.ru.nl/stijnmeijer/winsvc/eventlog"
"gitlab.science.ru.nl/stijnmeijer/winsvc/svc"
)
var elog debug.Log
......
......@@ -10,7 +10,7 @@ import (
"syscall"
"unsafe"
"github.com/btcsuite/winsvc/winapi"
"gitlab.science.ru.nl/stijnmeijer/winsvc/winapi"
)
const (
......
......@@ -14,7 +14,7 @@ package mgr
import (
"syscall"
"github.com/btcsuite/winsvc/winapi"
"gitlab.science.ru.nl/stijnmeijer/winsvc/winapi"
)
// Mgr is used to manage Windows service.
......
......@@ -11,7 +11,7 @@ import (
"path/filepath"
"testing"
"github.com/btcsuite/winsvc/mgr"
"gitlab.science.ru.nl/stijnmeijer/winsvc/mgr"
)
func TestOpenLanManServer(t *testing.T) {
......
......@@ -9,8 +9,8 @@ package mgr
import (
"syscall"
"github.com/btcsuite/winsvc/svc"
"github.com/btcsuite/winsvc/winapi"
"gitlab.science.ru.nl/stijnmeijer/winsvc/svc"
"gitlab.science.ru.nl/stijnmeijer/winsvc/winapi"
)
// TODO(brainman): use EnumDependentServices to enumerate dependent services
......
......@@ -12,7 +12,7 @@ import (
"syscall"
"unsafe"
"github.com/btcsuite/winsvc/winapi"
"gitlab.science.ru.nl/stijnmeijer/winsvc/winapi"
)
type Key struct {
......
......@@ -10,7 +10,7 @@ import (
"errors"
"syscall"
"github.com/btcsuite/winsvc/winapi"
"gitlab.science.ru.nl/stijnmeijer/winsvc/winapi"
)
// event represents auto-reset, initially non-signaled windows event.
......
......@@ -10,7 +10,7 @@ import (
"syscall"
"unsafe"
"github.com/btcsuite/winsvc/winapi"
"gitlab.science.ru.nl/stijnmeijer/winsvc/winapi"
)
// TODO(brainman): move some of that code to syscall/security.go
......
......@@ -14,7 +14,7 @@ import (
"syscall"
"unsafe"
"github.com/btcsuite/winsvc/winapi"
"gitlab.science.ru.nl/stijnmeijer/winsvc/winapi"
)
// State describes service execution state (Stopped, Running and so on).
......
......@@ -14,8 +14,8 @@ import (
"testing"
"time"
"github.com/btcsuite/winsvc/mgr"
"github.com/btcsuite/winsvc/svc"
"gitlab.science.ru.nl/stijnmeijer/winsvc/mgr"
"gitlab.science.ru.nl/stijnmeijer/winsvc/svc"
)
func getState(t *testing.T, s *mgr.Service) svc.State {
......@@ -62,7 +62,7 @@ func TestExample(t *testing.T) {
defer os.RemoveAll(dir)
exepath := filepath.Join(dir, "a.exe")
o, err := exec.Command("go", "build", "-o", exepath, "github.com/btcsuite/winsvc/example").CombinedOutput()
o, err := exec.Command("go", "build", "-o", exepath, "gitlab.science.ru.nl/stijnmeijer/winsvc/example").CombinedOutput()
if err != nil {
t.Fatalf("failed to build service program: %v\n%v", err, string(o))
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment