Skip to content

Commit

Permalink
Fabric gossip component - Discovery module
Browse files Browse the repository at this point in the history
Change-Id: I6e596752871efa4c6ff372ba629e44815fa97ac6
Signed-off-by: Yacov Manevich <yacovm@il.ibm.com>
  • Loading branch information
yacovm committed Sep 25, 2016
1 parent 9c2ecfc commit 6d78968
Show file tree
Hide file tree
Showing 6 changed files with 1,315 additions and 0 deletions.
21 changes: 21 additions & 0 deletions gossip/discovery/consts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
Copyright IBM Corp. 2016 All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package discovery

import "fmt"

var INVALID_MSG_TYPE = fmt.Errorf("Invalid message type")
4 changes: 4 additions & 0 deletions gossip/discovery/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ type DiscoveryService interface {

// GetMembership returns the alive members in the view
GetMembership() []NetworkMember

// InitiateSync makes the instance ask a given number of peers
// for their membership information
InitiateSync(peerNum int)
}
Loading

0 comments on commit 6d78968

Please sign in to comment.