// Shutdown function gracefully shutdown.
Shutdown function gracefully shutdown.
// Shutdown function gracefully shutdown .
func (s *Server) Shutdown() error {
	if s.server != nil {
		return s.server.Shutdown(nil)
	}
	return nil
}
func ( s * Server ) Shutdown ( ) error { if s . server != nil { return s . server . Shutdown ( nil ) } return nil }
Shutdown function gracefully shutdown.
Shutdown function gracefully shutdown .
// If s.server is nil, apis server is not running. // NOTE(nmg): need golang 1.8+ to run this method.