Move LoginHandler into LoginServer which others embed (#3431)

* Move LoginHandler into LoginServer which others embed

* Add unit tests for loginServer
This commit is contained in:
Krishnan Parthasarathi
2016-12-12 21:41:23 +05:30
committed by Harshavardhana
parent 2d6f8153fa
commit 6b4e6bcebf
6 changed files with 112 additions and 60 deletions

View File

@@ -27,11 +27,13 @@ const (
)
type s3PeerAPIHandlers struct {
loginServer
bms BucketMetaState
}
func registerS3PeerRPCRouter(mux *router.Router) error {
s3PeerHandlers := &s3PeerAPIHandlers{
loginServer{},
&localBucketMetaState{
ObjectAPI: newObjectLayerFn,
},