stopper: move to pkg package
This also adds a package docs for the stopper package.
This commit is contained in:
parent
f180d54f6d
commit
e3e545e22e
4 changed files with 4 additions and 3 deletions
|
@ -23,7 +23,7 @@ import (
|
|||
|
||||
"github.com/chihaya/chihaya/bittorrent"
|
||||
"github.com/chihaya/chihaya/middleware"
|
||||
"github.com/chihaya/chihaya/stopper"
|
||||
"github.com/chihaya/chihaya/pkg/stopper"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
log "github.com/Sirupsen/logrus"
|
||||
"github.com/chihaya/chihaya/bittorrent"
|
||||
"github.com/chihaya/chihaya/frontend"
|
||||
"github.com/chihaya/chihaya/stopper"
|
||||
"github.com/chihaya/chihaya/pkg/stopper"
|
||||
"github.com/chihaya/chihaya/storage"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package stopper implements a pattern for shutting down a group of processes.
|
||||
package stopper
|
||||
|
||||
import (
|
|
@ -2,7 +2,7 @@ package storage
|
|||
|
||||
import (
|
||||
"github.com/chihaya/chihaya/bittorrent"
|
||||
"github.com/chihaya/chihaya/stopper"
|
||||
"github.com/chihaya/chihaya/pkg/stopper"
|
||||
)
|
||||
|
||||
// ErrResourceDoesNotExist is the error returned by all delete methods in the
|
||||
|
|
Loading…
Reference in a new issue