func (d *Dinghy) Routes() []*Route {
	routes := []*Route{
		&Route{d.routePrefix + RouteID, d.IDHandler()},
		&Route{d.routePrefix + RouteRequestVote, d.RequestVoteHandler()},
		&Route{d.routePrefix + RouteAppendEntries, d.AppendEntriesHandler()},
		&Route{d.routePrefix + RouteStatus, d.StatusHandler()},
		&Route{d.routePrefix + RouteStepDown, d.StepDownHandler()},
	}
	return routes
}
// Routes create the routes required for leader election.
Routes create the routes required for leader election.
// Routes create the routes required for leader election .
func (d *Dinghy) Routes() []*Route {
	routes := []*Route{
		&Route{d.routePrefix + RouteID, d.IDHandler()},
		&Route{d.routePrefix + RouteRequestVote, d.RequestVoteHandler()},
		&Route{d.routePrefix + RouteAppendEntries, d.AppendEntriesHandler()},
		&Route{d.routePrefix + RouteStatus, d.StatusHandler()},
		&Route{d.routePrefix + RouteStepDown, d.StepDownHandler()},
	}
	return routes
}
func ( d * Dinghy ) Routes ( ) [ ] * Route { routes := [ ] * Route { & Route { d . routePrefix + RouteID , d . IDHandler ( ) } , & Route { d . routePrefix + RouteRequestVote , d . RequestVoteHandler ( ) } , & Route { d . routePrefix + RouteAppendEntries , d . AppendEntriesHandler ( ) } , & Route { d . routePrefix + RouteStatus , d . StatusHandler ( ) } , & Route { d . routePrefix + RouteStepDown , d . StepDownHandler ( ) } , } return routes }
Routes create the routes required for leader election.
Routes create the routes required for leader election .