func SetLabels(labels map[string]string,
	cmdLabels services.CommandLabels) ServerOption {
	return func(s *Server) error {
		for name, label := range cmdLabels {
			if label.Period < time.Second {
				label.Period = time.Second
				cmdLabels[name] = label
				log.Warningf("label period can't be less that 1 second. Period for label '%v' was set to 1 second", name)
			}
		}

		s.labels = labels
		s.cmdLabels = cmdLabels
		return nil
	}
}
// SetLabels sets dynamic and static labels that server will report to the
// auth servers
SetLabels sets dynamic and static labels that server will report to the
auth servers
// SetLabels sets dynamic and static labels that server will report to the // auth servers
func SetLabels(labels map[string]string,
	cmdLabels services.CommandLabels) ServerOption {
	return func(s *Server) error {
		for name, label := range cmdLabels {
			if label.Period < time.Second {
				label.Period = time.Second
				cmdLabels[name] = label
				log.Warningf("label period can't be less that 1 second. Period for label '%v' was set to 1 second", name)
			}
		}
		s.labels = labels
		s.cmdLabels = cmdLabels
		return nil
	}
}
func SetLabels ( labels map [ string ] string , cmdLabels services . CommandLabels ) ServerOption { return func ( s * Server ) error { for name , label := range cmdLabels { if label . Period < time . Second { label . Period = time . Second cmdLabels [ name ] = label log . Warningf ( " " , name ) } } s . labels = labels s . cmdLabels = cmdLabels return nil } }
SetLabels sets dynamic and static labels that server will report to the
auth servers
SetLabels sets dynamic and static labels that server will report to the auth servers