Add bootstrap REST handler for verifying server config (#8550)

This commit is contained in:
Harshavardhana
2019-11-22 12:45:13 -08:00
committed by GitHub
parent 890b493a2e
commit c3771df641
8 changed files with 276 additions and 19 deletions

View File

@@ -196,8 +196,8 @@ type ZoneEndpoints struct {
// EndpointZones - list of list of endpoints
type EndpointZones []ZoneEndpoints
// First returns true if the first endpoint is local.
func (l EndpointZones) First() bool {
// FirstLocal returns true if the first endpoint is local.
func (l EndpointZones) FirstLocal() bool {
return l[0].Endpoints[0].IsLocal
}